ubuntu@local-goods:~$ sudo swapon -showubuntu@local-goods:~$ free -h ubuntu@local-goods:~$ df -h ubuntu@local-goods:~$ sudo fallocate -l 4G /swapfileubuntu@local-goods:~$ ls -lh /swapfile ubuntu@local-goods:~$ sudo chmod 600 /swapfileubuntu@local-goods:~$ ls -lh /swapfile ubuntu@local-goods:~$ sudo mkswap /swapfile ubuntu@local-goods:~$ sudo swapon /swapfileubuntu@local-goods:~$ sudo swapon –show ubuntu@local-goods:~$ free -h
Місяць: Липень 2023
How to grow partition in AWS instance
Currently 11Gb disk space added but now need to expand partition. 1. First, make sure you have growpart installed. It is usually part of the cloud-guest-utils package. You can install it using the package manager for your Linux distribution. For example, on Debian/Ubuntu-based systems, you can use: 2. After installing cloud-guest-utils, you can use the…
How to create local docker registry
To create a Docker local registry, you can follow these steps: Run the registry container: Open a terminal or command prompt and run the following command to start a local Docker registry container: docker run -d -p 5000:5000 –name local-registry registry:2 This command pulls the registry:2 image from Docker Hub and starts a container named…