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"
How to make apache start at boot time

最新推荐文章于 2025-09-12 21:02:25 发布
