`
wangminshe89
  • 浏览: 668517 次
文章分类
社区版块
存档分类
最新评论

apache2.x修改默认端口后报 Starting httpd: (13)Permission denied: make_sock: could not bind to address

 
阅读更多

解决办法有两个:

1.快速解决(不推荐)




2.从根上解决(推荐)

根据自己的需求在selinux中添加需要指定的端口


a)前提需要先安装semanage(Centos6.0默认没有安装该应用)

安装方式参看 RHEL 6: semanage SELinux Command Not Found

也可以参看http://wiki.centos.org/HowTos/SELinux


b)使用semanage添加apache侦听的端口

参看http://hi.baidu.com/5212521/blog/item/0b998b1bdb15c7018618bf8c.htmlhttp://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

分享到:
评论

相关推荐

    运维必备!linux查看端口占用情况

    Mar 21 21:25:02 VM_0_9_centos httpd: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 Mar 21 21:25:02 VM_0_9_centos httpd: (98)Address already in use: AH00072: make_...

    Apache启动错误Permission denied: httpd: could not open error log file解决方法

    启动 httpd:(13)Permission denied: httpd: could not open error log file /home/wwwroot/jb51.net/logs/error_log. Unable to open logs [失败] 三、问题原因 因为新安装的系统,所以SELinux默认是开启状态,...

    php5apache2.dll-php5.1.x.rar

    2.将 httpd.exe.manifest 文件复制到你的apache安装目录下的bin文件夹下. 3.双击运行vcredist_x86.exe安装.(如果您的系统里已安装了 .NET framework 2.就可以省掉这一步) 完成!重启你的apache2.2。

    httpd_httpd//kmdl1p.com_httpd://khu99.com_httpd/.628787.com_http

    HTTPD is the main program for the Apache hypertext transfer protocol (HTTP) server

    Web应用安全:apache安全.docx

    题 目 单选题 在kali系统中Apache默认的主要配置文件...启用Apache服务的语句是:______ 参考答案:service apache2 start Apache配置文件的________语句造成了目录列出漏洞 参考答案:indexes 简答题 简述Apache日志

    apache启动报错:httpd: apr_sockaddr_info_get() failed

    重启apache:service httpd restart虽然重启成功,但却给出如下的提示信息:httpd: apr_sockaddr_info_get() failed for hoteelhttpd: Could not reliably determine the server’s fully qualified domain name, ...

    w.c.gz_HTTPD://W_httpd_httpd server_world

    simple httpd server hello world

    httpd.conf

    # yum -yinstall httpd //安装httpd会自动安装一下依赖包: apr apr-util httpd-tools mailcap # rpm -qi httpd Name : httpd Version : 2.4.6 Release : 18.el7.centos Architecture: x86_64 Install Date: Mon 11 ...

    apache httpd.conf中文 apache优化

    apache httpd.conf中文 apache优化

    在线客服源码客户端php源码

    2. 修改 c:apachehttpd.conf,去掉ServerName前的“#”号,后面  跟本机的IP地址 3. 运行 c:apacheapache -i 将Apache安装成为Windows 2000的一个服务 4. 运行 net start apache 启动Apache 5. 将 c:...

    httpd-2.4.43-o111f-x64-vc15.zip

    apache httpd linxu 最新版本,需要解压缩后运行, Application Details: Application Name: Apache 2.4.43 x64 Distribution File: httpd-2.4.43-o111f-x64-vc15.zip Original source by: Apache ...

    在线客服源码PHP源码

    2. 修改 c:apachehttpd.conf,去掉ServerName前的“#”号,后面  跟本机的IP地址 3. 运行 c:apacheapache -i 将Apache安装成为Windows 2000的一个服务 4. 运行 net start apache 启动Apache 5. 将 c:...

    centos7最新Apache 2.4.48 RPM包

    最新Apache 2.4.48 RPM包,包含依赖,主要支持centos 7系列,已在 centos7.6 centos7.9验证有效,使用命令下面的命令进行安装: rpm -Uvh *.rpm --nodeps --force

    Apache2 httpd.conf 中文版

    Apache2 httpd.conf 中文版说明 # # 基于 NCSA 服务的配置文件。 # #这是Apache服务器主要配置文件。 #它包含服务器的影响服务器运行的配置指令。 #参见<URL:http://httpd.ache.org/doc-2.0/>以取得关于这些指令的...

    Apache的httpd.conf文件常用指令解释

    Apache的httpd.conf文件常用指令解释Apache的httpd.conf文件常用指令解释Apache的httpd.conf文件常用指令解释

    httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.aarch64.rpm

    离线安装包,亲测可用

    配合apache(2.2.x)+openssl(0.9.6->1.0.1升级)过程博文环境搭建的资源

    这些资源是配合apache(2.2.x)+openssl(0.9.6->1.0.1升级)过程博文环境搭建中所需要的资源,不是太好找,所以都传上来,主要有: 1.升级opensslV1.0.1b单独用到的三个文件:libeay32.dll,openssl.exe,ssleay32.dll ...

    Apache 的 httpd.conf 详解

    Apache 的 httpd.conf 详解 Apache 的 httpd.conf 详解Apache 的 httpd.conf 详解Apache 的 httpd.conf 详解Apache 的 httpd.conf 详解Apache 的 httpd.conf 详解Apache 的 httpd.conf 详解

Global site tag (gtag.js) - Google Analytics