apache 启动脚本加入系统服务列表

第一步:
cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd
第二步:
vim /etc/init.d/httpd
在第一行#!/bin/sh下增加两行文字
# chkconfig: 35 70 30
# description: Apache
第三步:
保存退出
chkconfig --level 35 httpd on

posted @ 2016-02-24 15:20  系统运维  阅读(304)  评论(0编辑  收藏  举报