dd if=/dev/zero of=swapfile bs=1024 count=20480000
mkswap swapfile
swapon swapfile
成功如下:
扩展到了20G
参考链接:
https://blog.51cto.com/fjxsunmit/765267
dd if=/dev/zero of=swapfile bs=1024 count=20480000
mkswap swapfile
swapon swapfile
成功如下:
扩展到了20G
参考链接:
https://blog.51cto.com/fjxsunmit/765267