【问题标题】:How to set up SELinux to allow Apache to bind on port 888如何设置 SELinux 以允许 Apache 绑定端口 888
【发布时间】: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。还要确保您没有阻止该端口的防火墙。

标签: linux apache http selinux


【解决方案1】:

所有更改后重新启动服务

【讨论】:

  • 重启没有帮助
  • 确保您的端口未被防火墙阻止
猜你喜欢
  • 2021-03-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-01-17
相关资源
最近更新 更多