查看防火墙状态,并设置为开机不启动:
查看防火墙状态:systemctl status firewalld
停止防火墙:systemctl stop firewalld
开机不启动:systemctl disable firewalld
查看selinux 状态并设置为禁用:
查看selinux状态:grep -i ^selinux /etc/selinux/config
设置为禁用:sed -i '/^SELINUX/s/enforcing/disabled/g' /etc/selinux/config