zl程序教程

您现在的位置是:首页 >  后端

当前栏目

httpd Server not started: (13)Permission denied: make_sock: could not bind to address [::]:88

server to not 13 could Make bind denied
2023-09-11 14:19:17 时间

PHP 配置文件设置监听端口出现报错:

httpd Server not started: (13)Permission denied: make_sock: could not bind to address [::]:88

配置文件:/etc/httpd/conf/httpd.conf

由于缺少SELinux权限,默认情况下,SELinux仅允许apache / httpd绑定到以下端口:

80, 81, 443, 488, 8008, 8009, 8443, 9000

因此,结合我httpd.conf 监听 88 端口将失败。

要解决问题,我必须在系统的SELinux配置中添加端口88

  • 安装semanage工具:sudo yum -y install policycoreutils-python
  • 允许端口88使用httpdsudo semanage port -a -t http_port_t -p tcp 88