mkdir /swaps
dd if=/dev/zero of=/swapfile bs=1024 count=20480000 ##20G
mkswap /swaps/1.swap
swapon /swaps/1.swap
# check state
swapon -s
# turn off
swapoff
# set auto boot
# 随机启动:添加一行到/etc/fstab
/swaps/1.swap none swap sw 0 0
|
||||||
linux 增加虚拟内存mkdir /swaps mkswap /swaps/1.swap # turn off # 随机启动:添加一行到/etc/fstab Leave a Reply |
||||||
Copyright © 2025 小生这厢有礼了(BioFaceBook Personal Blog) - All Rights Reserved Powered by WordPress & Atahualpa |
Recent Comments