centos 关闭防火墙关闭selinux

#swapoff -a

#sed -ri 's/.*swap.*/#&/' /etc/fstab

systemctl disable firewalld --now

sed -i 's/enforcing/disabled/' /etc/selinux/config

setenforce 0

你可能感兴趣的:(linux,运维,服务器)