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 <服务名>关闭⾃启动