参考
参考2
重启后失效
/dev/mapper/centos-swap swap swap defaults 0 0 #centos7系统的swap文件挂载
echo "/swap/swap swap swap defaults 0 0" >> /etc/fstab