甜思思 发表于 2016-12-29 10:10:02

apache自启动

1:copy apache的启动文件到linux的启动目录下
    cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd
   
2:然后vi !$或者vi /etc/init.d/httpd
    再第3行加入
    # chkconfig: 345 85 15
    # description: This is apache Web Server
   
3:加入自启动 chkconfig --add httpd

4:chkconfig httpd off
页: [1]
查看完整版本: apache自启动