linux-网络相关2
1.关闭防火墙并设置开机不启动
systemctl status firewalld
查看防火墙的状态
systemctl status firewalld.service
systemctl start firewalld.service
开启防火墙
systemctl stop firewalld.service
关闭防火墙
systemctl disable firewalld.service
关闭防火墙,并设置开机不启动
systemctl enable firewalld.service
开机启动防火墙
chkconfig --list|grep network
查看开机是否启动
getenforce
查看是否开机启动,返回的是Disabled则证明是开机不启动
设置临时关闭
强制修改,改完之后必须要重启
vim /etc/selinux/config
reboot
重启服务
沫笙