初始化操作:
防火墙
1、查看防火墙状态
systemctl status firewalld
2、关闭防火墙
systemctl stop firewalld
3、永久关闭防火墙(开机不自启动)
systemctl disable firewalld
selinux
查看selinux状态:
getenforce
临时关闭:
setenforce 0
永久关闭:
sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config