-
solo 迁移后 nginx 502
2020-10-21 16:04把各种服务停了,单独访问时发现 nginx 有以下错误
2020/10/21 15:20:26 [crit] 17498#17498: *1 connect() to 127.0.0.1:8080 failed (13: Permission denied) while connecting to upstream, client: 110.53.177.181, server: xiaoyver.top, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "www.xiaoyver.top" 2020/10/21 15:20:26 [warn] 17498#17498: *1 upstream server temporarily disabled while connecting to upstream, client: 110.53.177.181, server: xiaoyver.top, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "www.xiaoyver.top" 2020/10/21 15:20:26 [crit] 17498#17498: *1 connect() to [::1]:8080 failed (13: Permission denied) while connecting to upstream, client: 110.53.177.181, server: xiaoyver.top, request: "GET / HTTP/1.1", upstream: "http://[::1]:8080/", host: "www.xiaoyver.top" 2020/10/21 15:20:26 [warn] 17498#17498: *1 upstream server temporarily disabled while connecting to upstream, client: 110.53.177.181, server: xiaoyver.top, request: "GET / HTTP/1.1", upstream: "http://[::1]:8080/", host: "www.xiaoyver.top"
解决方式:
setsebool -P httpd_can_network_connect 1