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
然后再重启服务
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。