查询当前服务运行状态
systemctl status ServiceName firewalld
启动服务
systemctl start ServiceName
重启服务
systemctl restart ServiceName
停止服务
systemctl stop ServiceName
关闭防火墙
systemctl stop firewalld
禁用防火墙(永久关闭)
systemctl disable firewalld
本文介绍如何使用systemctl命令管理Linux系统服务,包括查询服务状态、启动、重启、停止服务及防火墙的操作方法。
查询当前服务运行状态
systemctl status ServiceName firewalld
启动服务
systemctl start ServiceName
重启服务
systemctl restart ServiceName
停止服务
systemctl stop ServiceName
关闭防火墙
systemctl stop firewalld
禁用防火墙(永久关闭)
systemctl disable firewalld
2986
2701
635
53

被折叠的 条评论
为什么被折叠?