四、重启防火墙和Apache
# service iptables restart
# service httpd restart
五、正常情况下,应该可以通过新端口访问WEB服务了。
注:
1、第二、三、四步骤是在系统已经开启SELinux和防火墙的情况下设置的,如果已经关闭此两个服务,修改端口后直接重启Apache即可;
2、修改的端口号可以是执行#semanage port -l|grep http后,默认已经有的端口,如8443,这样可以省略额外添加SELinux端口操作;
3、第三步操作可以图形界面下完成。
参考资料
1、Permission denied: make_sock: could not bind to address
doc.guandang.net
不熟悉python、plone、zope,想用apache。80端口已经不在,就征用81端口凑合吧。修改httpd.conf后apachectl start,结果:
(13)Permission denied: make_sock: could not bind to address [::]:81
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:81
查一下SELinux下http相关端口 semanage port -l|grep http,结果:
http_cache_port_t tcp 3128, 8080, 8118, 10001-10010
http_cache_port_t udp 3130
http_port_t tcp 80, 443, 488, 8008, 8009, 8443
pegasus_http_port_t tcp 5988
pegasus_https_port_t tcp 5989
直接用man semanage最后例子中的一句
# Allow Apache to listen on port 81
semanage port -a -t http_port_t -p tcp 81
2
如何更改linux下的Apache端口号_计算机软件及应用_IT/计算机_专业资料。如何更改 linux 下的 Apache 端口号 一、修改/etc/httpd/conf/httpd.conf 文件中的监听...
linux系统如何修改端口号_电脑基础知识_IT/计算机_专业资料。一、修改/etc/...-denied-makesock-could-not.html 不熟悉python、plone、zope,想用apache。...
如何改变Apache端口_计算机硬件及网络_IT/计算机_专业资料。如何改变 Apache 端口: 找到 Apache 安装目录下 conf 目录下的 httpd.conf 文件。 打开它,找到 “...
linux 下 apache 等服务修改默认端口后无法正常启动解决办法 服务器上装了两个 webserver,一个是 nginx 开在 80 端口,没有异常。另外一个是 apache 绑定的 8001...
linux 环境 apache 多端口配置虚拟主机的方法默认情况下,linux 上 apache 使用的...现在以配置 svn 的端口为例,讲下如何通过配置虚拟主机实现将 svn 更改默认的 ...
org.apache.catalina.startup.Bootstrap start 由以上我们知道是目录为/usr/... linux系统如何修改端口号... 2页 免费 Linux下SSH端口修改 2页 免费 Linux...
修改Apache默认端口_计算机软件及应用_IT/计算机_专业资料。修改 Apache 默认端口在 Linux 下修改 Apache 的配置文件,编辑/etc/httpd/httpd.conf。加#号的是 ...
改变Apache端口等配置修改方法_计算机软件及应用_IT/计算机_专业资料。改变 Apache 端口等配置修改方法 如何改变 Apache 端口:找到 Apache 安装目录下 conf 目录下...
Linux下Apache服务器的安装和配置_计算机软件及应用_IT/计算机_专业资料。Apache... 在【系统】 【管理】 【安全级别和防火墙】中,讲站点使用的端口设置为 信任...
Order allow,deny Allow from all </Directory> </VirtualHost> 改变Apache端口等配置修改方法 如何改变Apache端口:找到Apache安装目录下conf目录下的httpd.conf文件...
热门文档