关闭交换分区

关闭交换分区 #

$ swapoff -a && \
  sed -ri 's/.*swap.*/#&/' /etc/fstab && \
  sysctl -w vm.swappiness=0