In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to disable swap in Linux". In daily operation, I believe many people have doubts about how to disable swap in Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to disable swap in Linux". Next, please follow the editor to study!
First, do not restart the computer, disable enabling swap, and immediately take effect # disable command
Sudo swapoff-a # enable command
Sudo swapon-a # View the status of the swap partition
Sudo free-m 2. Restart the computer, permanently disable Swap# and make the root file system readable and writable.
Sudo mount-n-o remount,rw / # modify the / etc/fstab file with vi, add # before the swap partition line to disable it, save and exit
Vi / etc/fstabi # enters insert insert mode
: wq # Save exit
# restart the computer and use free-m to check the partition status
Reboot sudo free-m follow-up work: there may be many BUG problems in building K8S using Docker Toolbox+virtualbox+Docker 1.12.6+Rancher 1.6. if you want to really experience K8S, you should directly use virtualbox to create ubuntu virtual machines, and directly build Rancher+Node K8S clusters on multiple Ubuntu virtual machines, which is closer to the real environment.
At this point, the study on "how to disable swap in Linux" 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.