This article is a mirror article of machine translation, please click here to jump to the original article.

View: 20873|Reply: 0

[Web] nginx access issue connect() to 127.0.0.1:8080 failed (13: Permission den...

[Copy link]
Posted on 8/26/2021 4:56:34 PM | | |
nginx access issue connect() to 127.0.0.1:8080 failed (13: Permission denied) while connecting to upstream

Problem: After building the project, use nginx for proxy, and after daily configuration, it is found that the frontend access is normal, but there is an error in the backend access, report a 502 error, look for nginx logs, and find connect() to 127.0.0.1:8080 failed (13: Permission denied) while connecting to upstream, there is this error. I checked online and found out that selinux was not closed.

A thorough understanding of what selinux in linux is
https://www.itsvse.com/thread-7772-1-1.html
solution

Close selinux

Temporary shutdown (no need to restart the machine)



Permanently closed

There is also a saying on the Internet, which is recorded here. Run the following command:

(End)




Previous:.NET Core is based on mDNS service discovery and registration
Next:MySQL performance optimization sets max_connections maximum number of connections
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com