如何查看和停止Linux启动的服务
2017-04-28 10:57
411 查看
SysV服务管理系统 例如 RedHat6等发行版
service --status-all 查看所有服务
service servicename status 查看指定服务状态
service servicename start|stop|restart 启动|停止|重启 指定服务
systemd服务管理系统 如CentOS 7等
systemctl is-enabled servicename.service #查询服务是否开机启动
systemctl enable *.service #开机运行服务
systemctl disable *.service #取消开机运行
systemctl start *.service #启动服务
systemctl stop *.service #停止服务
systemctl restart *.service #重启服务
systemctl reload *.service #重新加载服务配置文件
systemctl status *.service #查询服务运行状态
systemctl --failed #显示启动失败的服务
service --status-all 查看所有服务
service servicename status 查看指定服务状态
service servicename start|stop|restart 启动|停止|重启 指定服务
systemd服务管理系统 如CentOS 7等
systemctl is-enabled servicename.service #查询服务是否开机启动
systemctl enable *.service #开机运行服务
systemctl disable *.service #取消开机运行
systemctl start *.service #启动服务
systemctl stop *.service #停止服务
systemctl restart *.service #重启服务
systemctl reload *.service #重新加载服务配置文件
systemctl status *.service #查询服务运行状态
systemctl --failed #显示启动失败的服务
相关文章推荐
- 如何查看和停止Linux启动的服务
- 如何查看和停止Linux启动的服务
- 如何查看和停止Linux启动的服务
- 如何查看和停止Linux启动的服务
- 如何查看和停止Linux启动的服务
- 如何查看和停止Linux启动的服务
- 如何查看和停止Linux启动的服务
- 如何查看和停止Linux启动的服务
- 如何查看和停止Linux启动的服务
- 如何查看和停止Linux启动的服务
- 如何查看和停止Linux启动的服务
- Linux查看服务的启动状态,并且启动和停止服务的方法
- Linux如何修改系统的服务启动和停止
- Linux攻略 如何修改系统的服务启动和停止
- 如何远程连接Linux主机并启动和停止服务-Xshell的基本使用
- Linux查看服务的运行状态,并且启动和停止服务的方法(转)
- linux系统查看服务状态和启动停止服务
- LINUX下如何修改系统的服务启动和停止
- linux停止和查看启动服务的命令使用方法
- linux 删除文件后,如何释放磁盘空间?释放空间后nginx服务停止了,需要启动