The Linux server will require the virtual memory of the current system when installing larger software in the process, assuming that the initialization of the operating system without allocating large enough virtual memory later must manually increase the virtual memory to meet the installation conditions of the software.
Today we will learn how to increase the manual virtual memory, of course, all Linux systems to increase the virtual memory method is the same.
The operation is as follows:
- Use root login under terminal to check the virtual memory capacity of the current system
- Select a large partition to create a virtual memory file
- Format the swap partition and enable the swap partition
- If you want to boot from the start, you need to modify the/etc/fstab configuration file, the end of the file to append a line of information as follows
[[email protected] ~]# vim /etc/fstab
- To view the increased virtual memory capacity:
- If you are not using it later, you would like to delete the swap partition as follows:
6.1 Delete the swap:
[[email protected] ~]# swapoff /swap
[[email protected] ~]# rm -f /swap
6.2 Delete the Swap information line from the/etc/fstab file
Linux increases virtual memory