Apache解决error setting limit (Operation not permitted)及could not bind to address 0.0.0.0:80 的方法
来源:互联网 发布:医学大数据挖掘与应用 编辑:程序博客网 时间:2024/05/05 14:57
Apache解决error setting limit (Operation not permitted)及could not bind to address 0.0.0.0:80 的方法
在终端执行命令 service apache2 start后,在终端输出如下内容
* Starting web server apache2
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action ‘start’ failed.
The Apache error log may have more information.
[fail]
解决方法:
网上又看到Apache1024以下的端口需要root权限才能执行,所以只需在启动命令前加上sudo就可以了。
参考:http://zhidao.baidu.com/link?url=Z7Gvo7SKY9wOIQX36A5uj4QzuVhL1aBC5Qe14FhU5eMq8bwkkH3uejr5vZc7EM0zvOFhnf4wgvd8Wd2hortLm4M8M9rZvpr_jixeVcxiuay
普通用户只有bind 1024以后的端口的权限。请选择1024以后的端口,或者测试时用root用户。
另外http://blog.sina.com.cn/s/blog_417ad82e0101eomt.html 中给出了关于一些问题的解决方法,可供参考。
解决/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) 的方法是将 /user/sbin目录下的apache2ctl
注:这里建议注释掉,然后修改,这样可以做到简单恢复。
修改完成后,在终端输入service Apache2 start后会在终端输出
* Starting web server apache2
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action ‘start’ failed.
The Apache error log may have more information.
[fail]
虽然没有完全解决问题,但是已经解决了/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) 的问题,其实这里我也不清楚是什么问题。
- Apache解决error setting limit (Operation not permitted)及could not bind to address 0.0.0.0:80 的方法
- apache make_sock: could not bind to address 0.0.0.0:80
- could not bind to address 0.0.0.0:80问题解决
- make_sock: could not bind to address 0.0.0.0:80 Apache+Win2k AS
- Apache AH00072 错误 Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
- iperf error: "bind failed: Operation not permitted"
- APACHE故障解决办法(apache could not bind to address)
- apache2不能启动的解决办法(提示could not bind to address 0.0.0.0:80)
- Apache2不能启动的解决办法(提示could not bind to address 0.0.0.0:80)
- Apache 出现make_sock: could not bind to address 0.0.0.0:80...
- (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443的解决办法
- make_sock:could not bind to address 0.0.0.0:443
- (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
- apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80
- apache启动报错# Address already in use: make_sock: could not bind to address [::]:80
- apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80
- apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80
- apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80
- 面试专题2-------------二叉树,轻松搞定面试中的二叉树问题
- ASDL, Asymmetric Digital Subscriber Line
- 黑马程序员_java 反射的具体应用
- UI-UISlider
- 在visual stdio2010下调试程序出现 Emgu.CV.CvInvoke”的类型初始值设定项引发异常 的解决办法
- Apache解决error setting limit (Operation not permitted)及could not bind to address 0.0.0.0:80 的方法
- Ubuntu修改Apache2端口的方法
- Ubuntu卸载Apache2-转
- PyCharm python 入门实例 Hello world!
- 3D场景中选取场景中的物体。
- Ubuntu命令窗口安装软件的时候安装失败可能的原因
- nl80211
- Shell 变量相关操作
- Ubuntu创建删除文件及文件夹