解决nginx下connect() to 127.0.0.1:3000 failed (13: Permission denied) while connecting to upstream, client: 127.0.0.1, server: 错误信息时间:2023-03-08 21:31:58 尝试搭建nginx负载均衡,做域名转发时报如上错误,困扰了好长时间还好没放弃,还好百度找到解决办法: 是SeLinux导致: 1、执行下面的命令 setsebool -P httpd_can_network_connect 1 2、关闭SeLinux,可以查看以下文章: CentOS下查看SeLinux状态及关闭SeLinux 用第一种方案,完美解决,域名访问成功。转自博客园studyphp