dd if=/dev/zero of=/home/swap bs=4096 count=4096000
/sbin/mkswap /home/swap
/sbin/swapon /home/swap
vi /etc/fstab 末尾添加“/home/swap swap swap default 0 0”
参考链接:https://blog.csdn.net/unbelievevc/article/details/125721932
标签:sbin,新建,分区,swap,home,CentOS9 From: https://www.cnblogs.com/renyang/p/16951537.html