How to make apache start at boot time

设置HTTP服务自动启动
本文介绍如何通过chkconfig命令配置HTTP服务(httpd),使其在Linux系统启动时自动运行。文章详细展示了使用chkconfig命令检查当前httpd服务状态、设置服务自动启动以及验证设置效果的具体步骤。

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"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值