运维网's Archiver
论坛
›
apache
› apache加入chkconfig
hx0011yy
发表于 2018-11-19 06:48:49
apache加入chkconfig
第一步:
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
页:
[1]
查看完整版本:
apache加入chkconfig