【发布时间】:2016-11-03 08:33:45
【问题描述】:
我正在尝试将 Apache 服务器设置为侦听端口 888,而 SELinux 处于许可模式。
我成功把httpd端口改成了888,命令也搞定了:
semanage port -a -t http_port_t -p tcp 888
但连接仍然被拒绝。
【问题讨论】:
-
确保将
Listen 888添加到您的Apache 配置文件(可能是/etc/apache2/ports.conf)中,并添加一个端口为888 的VirtualHost 并重新启动Apache。还要确保您没有阻止该端口的防火墙。