linux - 如何设置 SELinux 以允许 Apache 绑定(bind)到端口 888

标签 linux apache http selinux

我正在尝试将 Apache 服务器设置为在 SELinux 时监听端口 888在宽容模式下。

我成功的把httpd端口改成了888,也完成了命令:

semanage port -a -t http_port_t -p tcp 888

但仍然拒绝连接。

最佳答案

所有更改后重启服务即可

关于linux - 如何设置 SELinux 以允许 Apache 绑定(bind)到端口 888,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40396894/

相关文章:

C代码中的Linux命令:/* treat as comment?

c++ - 错误 : Storage class specifiers invalid for parameter declarations

php - Upstart 的 Yii 控制台给我错误

javascript - 从外部根文件夹访问js

java - 当java中的响应代码为4xx时,如何解析REST API的响应正文

http - HTTP部分上传、续传的标准方法

python - 找出Python库文件中的内容

html - 如何更改 Apache 中的默认索引页?

apache - 具有 Apache 多个 VirtualHosts 的 Golang webapp

javascript - Http 请求 - IMG 与 TEXT?