linux系統查看所有服務的命令

來源:互聯網
上載者:User

linux系統查看所有服務的命令 以前用過這麼命令運行後可以在linux系統查看所有服務的命令是什麼,有一個文本菜單,可以很方面的選擇啟動或者停止服務,諸如ftp, ssh, telnet之類的但是我忘了那個命令叫什麼了,記得好像是sysconfig,但是現在系統裡沒有這個命令。這個命令就是“chkconfig --list”,下面我們以查詢linux的httpd服務為例,做下面的詳細介紹:##查看服務在每個層級的運行狀態chkconfig --listhttpd           0:關閉  1:關閉  2:關閉  3:關閉  4:關閉  5:啟用  6:關閉bluetooth       0:關閉  1:關閉  2:關閉  3:關閉  4:關閉  5:關閉  6:關閉 #停止 HTTPD服務  www.2cto.com  [root@zhangxx etc]# service httpd stop停止 httpd:[  確定  ]#啟動httpd服務[root@zhangxx etc]# service httpd start啟動 httpd:[  確定  ]#重起HTTD服務[root@zhangxx etc]# service httpd restart停止 httpd:[  確定  ]啟動 httpd:[  確定  ]#讓httpd 在機器啟動的時候在運行層級上停止[root@zhangxx etc]# chkconfig --level 345 httpd off[root@zhangxx etc]# chkconfig --list |grep httpdhttpd           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 httpdhttpd           0:關閉  1:關閉  2:關閉  3:啟用  4:啟用  5:啟用  6:關閉[root@zhangxx etc]#   本文來自於胖鯊魚網

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.