-
服务:服务是支持Linux运行的一些必要程序,本质上也是进程,叫守护进程。
-
操作服务:systemctl [start|stop|restart|reload|status|enable] 服务名称
如:
systemctl status firewalld | 查看防火墙运行状态 |
---|---|
systemctl stop firewalld | 关闭防火墙 |
systemctl start firetalld | 开启防火墙 |
systemctl enable firewalld | 设置防火墙开机启动 |
- 老版的linux或者有些发行版本的linux,操作服务使用【service】命令。