Centos7 Nginx 问题汇总

Permission denied) while connecting to upstream

解决办法:关闭selinux

1
2
3
4
setenforce 0

修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled

[emerg] bind() to 0.0.0.0:8090 failed (13: Permission denied)

1
2
3
4
yum provides semanage
yum -y install policycoreutils-python.x86_64
semanage port -a -t http_port_t -p tcp 8090
semanage port -l | grep http_port_t