似乎在我的rc * .d目录中正确配置了所有内容.这是查找/etc/rc.d -name“* httpd *”|的结果xargs ls -l:
-rwxr-xr-x 1 root root 3371 Feb 16 2012 /etc/rc.d/init.d/httpdlrwxrwxrwx 1 root root 15 Apr 14 2012 /etc/rc.d/rc0.d/K15httpd -> ../init.d/httpdlrwxrwxrwx 1 root root 15 Apr 14 2012 /etc/rc.d/rc1.d/K15httpd -> ../init.d/httpdlrwxrwxrwx 1 root root 15 Apr 14 2012 /etc/rc.d/rc2.d/K15httpd -> ../init.d/httpdlrwxrwxrwx 1 root root 15 Apr 14 2012 /etc/rc.d/rc3.d/K15httpd -> ../init.d/httpdlrwxrwxrwx 1 root root 15 Apr 14 2012 /etc/rc.d/rc4.d/K15httpd -> ../init.d/httpdlrwxrwxrwx 1 root root 15 Apr 14 2012 /etc/rc.d/rc5.d/K15httpd -> ../init.d/httpdlrwxrwxrwx 1 root root 15 Apr 14 2012 /etc/rc.d/rc6.d/K15httpd -> ../init.d/httpd
我知道我可以将/etc/init.d/httpd启动命令放入/etc/rc.local,但这不是一个解决方法吗?为什么不自动启动? rc * .d目录中的其他内容在启动时启动(mongod,postfix等).谢谢!
解决方法 使用chkconfig管理您希望此服务启动的运行级别.通常chkconfig httpd on就可以了.
总结以上是内存溢出为你收集整理的linux – Apache / httpd无法在启动时自动启动全部内容,希望文章能够帮你解决linux – Apache / httpd无法在启动时自动启动所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)