查看linux开启了哪些服务

查看linux开启了哪些服务,第1张

1. 查看Linux启动服务

chkconfig --list 查询出所有当前运行的服务

chkconfig --list atd  查询atd服务的当前状态

2.停止所有服务并且在下次系统启动时不再启动,如下所示:

chkconfig --levels 12345 NetworkManager off

如果想查看当前处于运行状态的服务,用如下语句过滤即可

chkconfig --list |grep on

3.如果只是想当前的设置状态有效,在系统重启动后即不生效的话,可以用如下命令停止服务

service sshd stop

扩展资料:

Linux是一套免费使用和自由传播的类Unix *** 作系统,是一个基于POSIX和UNIX的多用户、多任务、支持多线程和多CPU的 *** 作系统。它能运行主要的UNIX工具软件、应用程序和网络协议。它支持32位和64位硬件。Linux继承了Unix以网络为核心的设计思想,是一个性能稳定的多用户网络 *** 作系统。

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 #显示启动失败的服务


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/7440772.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-05
下一篇2023-04-05

发表评论

登录后才能评论

评论列表(0条)

    保存