将Apache添加为Linux的服务 实现自启动
摘要:
将Apache添加为Linux的服务 实现自启动在Linux下用源代码方式编译安装完Apache后,启动关闭Apache可以通过如下命令实现:/app/apache2.2.14/bin/apachectl start | stop | restart如果想将httpd列入系统自动启动的服务,可以直接将上述的apachectl文件拷贝到 /etc/rc.d/init.d 中,然后在相应的启动级别如3,5中加入链接即可。命令如下: /etc/rc.d/init.d/.httpd.swp cp /app/apache2.2.14/bin/apachectl /etc/rc.d/init.d/http 阅读全文
posted @ 2012-05-06 00:58 DuDD 阅读(328) 评论(0) 推荐(0)
浙公网安备 33010602011771号