Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to manually increase the space of swap

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

The main content of this article is "how to manually increase the space of swap", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn "how to manually increase the space of swap"!

1.use dd to create a new file for swap

Dd if=/dev/zero of=/home/swapfile bs=1M count=1024

2.create the file system which is swap

Mkswap / home/swapfile

3.make the new swap file work

Swapon / home/swapfile

4.check

Swapon-s

5.add the fallowing line into the / etc/fstab for next reboot the system use the new swap file as default

Vi / etc/fstab-open

/ home/swapfile swap swap defaults 0 0

At this point, I believe you have a deeper understanding of "how to manually increase the space of swap". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report