防火墙
systemctl stop firewalld # 临时关闭防火墙 systemctl start firewalld # 临时打开防火墙 systemctl disable firewalld # 防火墙开机关闭 systemctl enable firewalld # 防火墙开机启动 systemctl status firewalld # 查看防火墙状态
selinux
setenforce 0 # 临时关闭selinux setenforce 1 # 临时打开selinux vi /etc/selinux/config # 开机关闭selinux 修改"SELINUX=disabled"为"SELINUX=disabled" getenforce # 查看selinux状态