WdidcNet

Account Center

Support

Login
Knowledgebase

Linux手动创建Swap

1、创建文件:
dd if=/dev/zero of=wdidc bs=1024 count=1024000

2、制作为Swap文件:
mkswap wdidc

3、让Swap文件生效:
swapon wdidc

4、查看当前SWAP:
swapon -s

5、自动挂载:
vi /etc/fstab
填入:
/root/wdidc swap swap defaults 0 1
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

一键挂载数据盘

挂载数据盘命令; cd /root && wget https://soft.wdidc.net/tools/AutoTools.sh && chmod +x...