In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to increase swap partition space in linux system". In daily operation, I believe many people have doubts about how to increase swap partition space in linux system. Xiaobian consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to increase swap partition space in linux system". Next, please follow the editor to study!
Standard linux system how to increase the swap partition space is small? For quasi-Linux installation, the SWAP partition is twice the size of memory, and if the memory bar is added, the SWAP partition will also be increased. If you add 1 gigabyte of memory, the SWAP partition will increase by 2 gigabytes, but how to increase it? Next, let's take a look.
1. The command to check the size of swap partition: "free-m"
2. Select the appropriate partition and create the appropriate swap file. The command is: "dd if=/dev/zero of=/swap1 bs=1M count=2048"
3. Set the generated file to swap partition file, and command: "mkswap / swap1"
4. Activate the newly created swap partition with the command: "swapon / swap1"
5. Check the effective swap partition size. Command: "free-m"
6. Set up and boot the newly created swap partition, edit the "/ etc/fstab" configuration file, and add "/ swap1 swap swap defaults 0 0" to the end of the file.
7. Restart the computer to see if the swap partition is valid.
Note: make sure that under "/ etc/rc.local", there is no command to cancel the buffer ("swapoff-a"), please comment out.
At this point, the study on "how to increase the swap partition space in the linux system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.