Linux 常⻅系统服务命令
更新时间:2021-10-10 09:09常⽤命令 | 作⽤ |
---|---|
chkconfig --list | 列出系统服务 |
service <服务名> status | 查看某个服务 |
service <服务名> start | 启动某个服务 |
service <服务名> stop | 终⽌某个服务 |
service <服务名> restart | 重启某个服务 |
systemctl status <服务名> | 查看某个服务 |
systemctl start <服务名> | 启动某个服务 |
systemctl stop <服务名> | 终⽌某个服务 |
systemctl restart <服务名> | 重启某个服务 |
systemctl enable <服务名> | 开启⾃启动 |
systemctl disable <服务名> | 关闭⾃启动 |