新安装centos 7开启root登陆 关闭防火墙 CentOS7如何关闭防火墙

开启root登陆 

sudo  vi /etc/gdm/custom.conf

新安装centos 7开启root登陆 关闭防火墙
CentOS7如何关闭防火墙

在daemon加

AutomaticLoginEnable=true
AutomaticLogin=root 

修改密码

sudo passwd root

查看防火墙是开启状态:systemctl status firewalld.service 

关闭运行的防火墙(重启系统后失效):systemctl stop firewalld.service   

禁止防火墙服务器(重启系统后仍关闭):systemctl disable firewalld.service