centos7 增加swap

使用swapon命令可以检查系统是否已经配置过swap swapon -s 检查一下磁盘的可用空间 df -h /home富余,将把swap文件夹建在home下。 创建swap空间(我的内存是128G,我设置swap大小为64G) dd if=/dev/zero of=/home/swapfile bs=1024 count=64M 将该文件夹设置为root权限 chmod 600 /home/s
相关文章
相关标签/搜索