赞
踩
使用nginx
直接启动成功,使用systemctl
启动nginx
服务时报错
nginx: [emerg] bind() to 0.0.0.0:19993 failed (13: Permission denied)
SELinux
安全增强模块导致的
sudo setenforce 0
systemctl
启动nginx
,如能启动成功则证明是当前原因sudo semanage port -l | grep http_port_t
如果提示找不到命令,则需要安装工具包
sudo yum install policycoreutils-python-utils # CentOS/RHEL sudo apt-get install policycoreutils-python-utils # Ubuntu/Debian
- 1
- 2
如果报错自行搜索原因
semanage port -a -t http_port_t -p tcp 19993
SELinux
sudo setenforce 1
systemctl
重启nginx
试验Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。