切换默认启动模式:GUI和CLI
systemctl set-default multi-user.target
systemctl set-default graphical.target
获取当前启动模式:systemctl get-default
从CLI启动图形界面:startx
启动时自动连接网络:
cd /etc/sysconfig/network-scripts/ sed -i -e 's@^ONBOOT="no@ONBOOT="yes@' ifcfg-eth0
防火墙配置:
打开80端口
sudo firewall-cmd --zone=public --add-port=33061/tcp --permanent
刷新配置
sudo firewall-cmd --reload
启用防火墙
sudo systemctl start firewalld
关闭防火墙
sudo systemctl stop firewalld
 
badge