摘要:
#!/bin/bash 2 # 3 # httpd Startup script for the Apache HTTP Server 4 # 5 # chkconfig: - 85 15 6 # description: The Apache HTTP Server is an efficient and extensible \ 7 # server implementing the current HTTP standards. 8 # processname: httpd 9 # config: /etc/httpd/conf/... 阅读全文
摘要:
/etc/inittab,有一行为default=5,将5改为3就可以了复制Apache启动文件到usr/sbin里面 前面为你安装的apache的目录。#cp /usr/local/apache/bin/apachectl /usr/sbin/启动Apache时就可以简单的输入,而不用输入很长一段了。sudo apachectl start 就可以启动了设置Apache开机自启动#vi /etc/rc.d/rc.local增加一行 /sbin/apachectl startchkconfigchkconfig sshd --level 3 on 阅读全文