电脑停留在启动界面 如何检视或停止Linux启动的服务?
如何检视或停止Linux启动的服务?
如何检视或停止Linux启动的服务?
SysV服务管理系统 例如 RedHat6等发行版
service --status-all 检视所有服务
service servicename status 检视指定服务状态
service servicename start|s|restart 启动|停止|重启 指定服务
systemd服务管理系统 如CentOS 7等
systemctl is-enabled servicename.service #查询服务是否开机启动
systemctl enable *.service #开机执行服务
systemctl disable *.service #取消开机执行
systemctl start *.service #启动服务
systemctl s *.service #停止服务
systemctl restart *.service #重启服务
systemctl reload *.service #重新载入服务配置档案
systemctl status *.service #查询服务执行状态
systemctl --failed #显示启动失败的服务
如何检视和停止Linux启动的服务
service --status-all #检视全部服务状态
service servicename status #检视某个服务
service servicename start #启动服务
service servicename s #停止服务
chkconfig --list #检视服务启动设定
linux下启动服务的方式:
#service file restart || servicer file start
linux下停止服务的方式:
#service file s
linux下检视服务的方式:
#service file status
以上是最常用的方式,同样你也可以通过/etc目录下的相关档案进行状态操作;而对于停止服务也可以利用程序号的方式kill程序;
如果在终端不适应情况下还可以进行桌面操作,进入系统应用中的服务选单,就可以对相关服务进行管理和控制。
记住不同的linux发行版不一样.
redhat/centos 7 以前的. 你可以用 ntsysv 或是 setup来设定. 这个改的是这些服务在下次启动会不会自动启动.
如果伺服器 i/xid启动的. 需要改相应的配置.
如果是新的 redhat/centos 7 又变化很大. 它使用了 systemd来换掉了以前系统的 init,和指令码部分.
debian对应 ntsysv的命令有一个 ronf可以看看.
下面我复制一下我看 redhat 7时的记录.
-------------------------
### 系统服务的 ntsysv里只剩几个了. 它是一个 systemd 的系统.现在看是要老命阿!
systemctl --all 显示所有的系统unit?(现在好像有 service,socket,slice,mount,path,scope,device)
systemctl status cupsd 检视unit 状态.
systemctl disable cups
rm '/etc/systemd/system/multi-user.target.wants/cups.path'
rm '/etc/systemd/system/sockets.target.wants/cups.socket'
rm '/etc/systemd/system/printer.target.wants/cups.service'
systemctl enable postfix
ln -s '/usr/lib/systemd/system/postfix.service' '/etc/systemd/system/multi-user.target.wants/postfix.service'
enable unit(自动启动)
systemctl start postfix 启服务
systemctl s postfix 停服务
当想禁止系统里那些不用的程序时. 也许这个命令也会很有用处.
systemctl list-dependencies
看到这儿时我快哭了.我真的很想念ntsysv和 ronf啥地.

如何定制linux启动时启动的服务?
在控制台或终端下执行ntsysv,然后把要启动的服务选上,如果要开机不启动某个那就把他的选中去掉。
android 如何检视系统启动的服务
进入设定介面-》应用程式-》正在执行
会看到所有手机当前执行的程式和服务,可以手动进行关闭。
如何检视启动的服务 / 新手园地 / Arch Linux 中文论坛
你可以使用service密令,service 服务名 status,检视某一个服务的状态,比如检视MySQL的执行状态,service mysqld status ,stat -tln 检视埠的占用情况
你好,检视启动方法如下:
检视Linux启动的服务 . 程式码如下: chkconfig --list 查询出所有当前执行的服务 chkconfig --list atd 查询atd服务的当前状态
停止所有服务并且在下次系统启动时不再启动,如下所示: . 程式码如下: chkconfig --levels 12345 NeorkManager ...