Two new methods for creating SWAP space in Linux (3)

Source: Internet
Author: User
Two new methods for creating SWAP space in Linux operating system (3) -- Linux general technology-Linux technology and application information. For more information, see the following. Other related commands:

Swapoff ?? Disabled, opposite to swapon.

Swapon-s ?? View

Load SWAP at startup, modify/etc/fstab

For example:

# This file is edited by fstab-sync-see 'man fstab-sync' for details
/Dev/VolGroup00/LogVol00/ext3 defaults 1 1
LABEL =/boot ext3 defaults 1 2
None/dev/pts devpts gid = 5, mode = 620 0 0
None/dev/shm tmpfs defaults 0 0
None/proc defaults 0 0
None/sys sysfs defaults 0 0
/Dev/VolGroup00/LogVol01 swap defaults 0 0
/Nihao123 swap defaults 0 0
Note that both are swap and both are 0.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.