Usage: service < option > | –status-all | [ service_name [ command | –full-restart ] ]
[root@localhost ~]# chkconfig –help
chkconfig 版本 1.3.29 – 版權(quán) (C) 1997-2000 Red Hat, Inc.
在 GNU 公共許可的條件下,本軟件可以被自由發(fā)行。
chkconfig用法: chkconfig –list [name]
chkconfig –add
chkconfig –del
chkconfig [–level ] <on|off|reset|resetpriorities>
在我的系統(tǒng)上sshd默認(rèn)不在系統(tǒng)服務(wù)列表里邊,下面以sshd命令說(shuō)明他們的用法:
輸入service sshd會(huì)列出可用的一些操作:
[root@localhost ~]# service sshd
用法:/etc/init.d/sshd {start|stop|restart|reload|condrestart|status}
啟動(dòng)sshd服務(wù):
service sshd start
停止sshd服務(wù):
service sshd stop
將sshd添加到服務(wù)列表里邊:
chkconfig –add sshd
使sshd可以開(kāi)機(jī)自動(dòng)運(yùn)行:
chkconfig sshd on
還可以通過(guò)–level具體指定sshd的運(yùn)行級(jí)別。
以上是“Linux中chkconfig有什么用”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注資訊頻道!
更多關(guān)于云服務(wù)器,域名注冊(cè),虛擬主機(jī)的問(wèn)題,請(qǐng)?jiān)L問(wèn)西部數(shù)碼官網(wǎng):www.ps-sw.cn