CentOS7 添加 Swap
目录
|
|
如果执行 swapon 的时候,提示 swapon failed: Invalid argument
则把 fallocate -l 2G swapfile
替换为 dd if=/dev/zero of=/swapfile count=4096 bs=1MiB
|
|
参考:
https://blog.csdn.net/zstack_org/article/details/53258588
https://unix.stackexchange.com/questions/294600/i-cant-enable-swap-space-on-centos-7