CentOS7关闭图形界面与防火墙

CentOS7关闭图形界面与防火墙

关闭图形界面

参考:https://www.cnblogs.com/micenote/p/5783234.html

主要命令:

//查看默认的target
systemctl get-default
//开机以命令模式启动(关闭图形界面)
systemctl set-default multi-user.target
//开机以图形界面启动
systemctl set-default graphical.target

关闭防火墙

参考:https://jingyan.baidu.com/article/ff42efa9fd8c1cc19e2202bb.html

主要命令:

//查看防火墙状态
systemctl status firewalld.service
//临时关闭防火墙
systemctl stop firewalld.service
//永久关闭防火墙
systemctl disable firewalld.service
posted @ 2021-01-23 20:36  夏恒  阅读(863)  评论(0编辑  收藏  举报