center os7关闭防火墙与SELinux

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/The_Reader/article/details/82596269

安装系统完成后,首先将防火墙关闭,

命令为:systemctl status firewalld.service (查看防火墙状态)

systemctl stop firewalld.service (关闭防火墙)

这只是简单的关闭防火墙,电脑再重启后依然会自动开启的,所以要想永久的关闭防火墙就必须:systemctl disable fireswalld.service

这就永久关闭了防火墙

然后还有就是center os自带了一个安全软件SELinux我们还需要将它关闭,避免以后操作会出现莫名的错误。

vi /etc/selinux/config

将SELINUX=******改为SELINUX=disabled然后保存就可以。

猜你喜欢

转载自blog.csdn.net/The_Reader/article/details/82596269
今日推荐