管理指令

deity-night / 2023-08-13 / 原文

重启系统

reboot  直接重启

shutdown 可以指定时间 

shutdown -r now 立即重启
shutdown -r 23:30 指定时间重启

系统服务管理 systemctl

防火墙

查看防火墙状态

systemctl status firewalld

 停止防火墙

# systemclt stop firewalld

 

启动与关闭后台服务

systemctl list-unit-files (功能描述:查看全部服务开机启动状态)

systemctl disable service_name (功能描述:关掉指定服务的自动启动)

systemctl enable service_name (功能描述:开启指定服务的自动启动)