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

Activate swap space using the swapon command of linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article takes a look at activating swap space using linux's swapon command. There is a certain reference value, friends in need can refer to, hope to help you.

The swapon command is used to activate the swap space in the Linux system, and the memory management of the Linux system must use the swap area to establish virtual memory.

Syntax format: swapon [parameters]

Common parameters:

-a set all the devices in the / etc/fstab file to swap, start the switch area-h display help-p set the exchange area priority-s display the use of the exchange area

Reference example

Display the version information of the exchange:

[root@linuxcool] # swapon-v / dev/hdb4

Show the usage of the exchange area:

[root@linuxcool] # swapon-s

Set priority:

[root@linuxcool] # swapon-p 3 / dev/hdb4

Automatically start all SWAP devices:

[root@linuxcool] # swapon-a

Display the help documentation for the swap command:

[root@linuxcool] # swapon-h is a brief introduction to activating swap space using linux's swapon command. Of course, you have to use the above differences in detail before you understand it. If you want to know more, welcome to follow the industry information channel!

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