apache2.x修改默认端口后报 Starting httpd: (13)Permission denied: make_sock: could not bind to address
来源:互联网 发布:淘宝培训内容 编辑:程序博客网 时间:2024/06/06 08:55
该问题是由SELinux 引起的.(注本人的环境为centos 6.0)
解决办法有两个:
1.快速解决(不推荐)
vi /etc/sysconfig/selinuxSELINUX=enforcing =>SELINUX=disabledreboot
2.从根上解决(推荐)
根据自己的需求在selinux中添加需要指定的端口
a)前提需要先安装semanage(Centos6.0默认没有安装该应用)
安装方式参看 RHEL 6: semanage SELinux Command Not Found
也可以参看 http://wiki.centos.org/HowTos/SELinux
# yum provides /usr/sbin/semanageor#yum whatprovides /usr/sbin/semanage#yum -y install policycoreutils-python#semanage
b)使用semanage添加apache侦听的端口
参看 http://hi.baidu.com/5212521/blog/item/0b998b1bdb15c7018618bf8c.html 或 http://hi.baidu.com/ldtrain/blog/item/59c9bb1e242247fee0fe0b5b.html
查看现在的支持http的端口有哪些
#semanage port -l|grep http
为http服务添加新的端81
#semanage port -a -t http_port_t -p tcp 81
查看添加的结果
#semanage port -l|grep http
- apache2.x修改默认端口后报 Starting httpd: (13)Permission denied: make_sock: could not bind to address
- apache2.x修改默认端口后报 Starting httpd: (13)Permission denied: make_sock: could not bind to address .
- Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]
- Starting httpd: (13)Permission denied: make_sock: could not bind to address
- 关于Centos 出现httpd:(13)Permission denied: make_sock: could not bind to address [::]:80 (13)Permission
- httpd 13 permission denied make_sock could not bind to address 失败的原因
- httpd 13 permission denied make_sock could not bind to address 失败的原因
- Permission denied: make_sock: could not bind to address处理
- permission denied make_sock could not bind to address
- 解决:Permission denied: make_sock: could not bind to address
- 解决:Permission denied: make_sock: could not bind to address
- 解决:Permission denied: make_sock: could not bind to address
- Permission denied: make_sock: could not bind to address [::]:80
- Linux:解决Permission denied: make_sock: could not bind to address
- linux 下apche无法监听端口解决办法(Permission denied: make_sock: could not bind to address)
- linux apache报Permission denied: make_sock: could not bind to address
- apache 8080端口冲突( Starting httpd: (98)Address already in use: make_sock: could not bind to address )
- Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address
- 关于开源生态和“闭源”生态的一些想法
- QT 经典错误: Basic XLib functionality test failed
- 迎接2012之集合和泛型(2)------线性表的链式结构基本实现
- 利用 CHtmlView 和 HTML 制作新风格的界面
- SEO 的五条黄金准则
- apache2.x修改默认端口后报 Starting httpd: (13)Permission denied: make_sock: could not bind to address
- 类似于repalce的位的替换
- 扩展CodeIgniter的表单验证(Form_validatioin)类和解决Model类调用callback_的问题
- 有关“中国技术落后一代”的讨论
- 高质量链接的十大特征
- Java一些标准操作的时间比较
- Java操作txt文件
- Android中保存数据的四种方法
- 每天20个德语单词造句练习(1)——2011.11.08