linux 服務 啓動 關閉 列表

##查看服務在每一個級別的運行狀態web

chkconfig --listspa

httpd           0:關閉  1:關閉  2:關閉  3:關閉  4:關閉  5:啓用  6:關閉.net

bluetooth       0:關閉  1:關閉  2:關閉  3:關閉  4:關閉  5:關閉  6:關閉3d

 

#中止 HTTPD服務  www.2cto.com  rest

[root@zhangxx etc]# service httpd stoporm

中止 httpd:[  肯定  ]ci

#啓動httpd服務get

[root@zhangxx etc]# service httpd startit

啓動 httpd:[  肯定  ]io

#重起HTTD服務

[root@zhangxx etc]# service httpd restart

中止 httpd:[  肯定  ]

啓動 httpd:[  肯定  ]

#讓httpd 在機器啓動的時候在運行級別上中止

[root@zhangxx etc]# chkconfig --level 345 httpd off

[root@zhangxx etc]# chkconfig --list |grep httpd

httpd           0:關閉  1:關閉  2:關閉  3:關閉  4:關閉  5:關閉  6:關閉

#讓httpd 在機器啓動的時候在運行級別上啓動  www.2cto.com  

[root@zhangxx etc]# chkconfig --level 345 httpd on

[root@zhangxx etc]# chkconfig --list |grep httpd

httpd           0:關閉  1:關閉  2:關閉  3:啓用  4:啓用  5:啓用  6:關閉

相關文章
相關標籤/搜索