linux下查看服务运行状态
linux下查看服务运行状态(centos)
1.查看服务是否开机自启
systemctl is-enabled 服务名称

2.查看服务运行状态
systemctl status 服务名称

3.开启服务
systemctl start 服务名称
4.关闭服务
systemctl stop 服务名称
5.服务内容修改后,重新加载服务
systemctl daemon-reload
然后再重启服务
systemctl is-enabled 服务名称

systemctl status 服务名称

systemctl start 服务名称
systemctl stop 服务名称
systemctl daemon-reload
然后再重启服务