How to make apache start at boot time

Do thefollowing:
chkconfig --list|grep http


You get something like this:
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

Now do:
chkconfig httpd on
This will set it up to start each time you boot.
Verify by:
chkconfig --list|grep http

you get:

httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off



Just so you know the number in front of the on/off are the runlevels so you can tell it to start on one runlevel like 3 by chkconfig --level 3 httpd and only the 3 will have the "on" and the others will have "off"

發佈了33 篇原創文章 · 獲贊 1 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章