cp /etc/fstab /etc/fstab.bak sed -i ‘/swap/s/^/#/’ /etc/fstab cat /etc/fstab|grep -v ^#|grep -v ‘^$’ 关闭swap swapoff -a 大内存建议关闭,小内存建议保留