반응형
1. 에러의 원인
nginx 를 실행하기에 앞서 보안관련 설정이 미흡한 경우 발생, 흔히 리눅스에서 외부 보안을 책임지느 selinux 에 보안 연결이 설정이 안되어 잇을 경우 발생
2. 해결 방법
아래와 같은 명령어를 입력해주면 된다. 두개중 하나를 골라쓰면된다. 나는 2번째 것을 사용했다
# 1번째
setsebool -P httpd_can_network_connect 1
# 2번째
setsebool -P httpd_can_network_connect on
3. 참고 링크
stackoverflow.com/questions/23948527/13-permission-denied-while-connecting-to-upstreamnginx
(13: Permission denied) while connecting to upstream:[nginx]
I am working with configuring Django project with Nginx and Gunicorn. While I am accessing my port gunicorn mysite.wsgi:application --bind=127.0.0.1:8001 in Nginx server, I am getting the following
stackoverflow.com
반응형
'Error code 모음 > 3. Linux Errors' 카테고리의 다른 글
[Linux Error] Failed to restart network.service: Unit network.service not found (0) | 2021.08.20 |
---|---|
[Linux Error] cd permission denied (0) | 2021.02.25 |
Linux error : Another app is currently holding the yum lock; 에러 (0) | 2020.04.22 |
Linux Error : '\r': command not found (0) | 2020.04.14 |
Linux Error : ntp 시간 설정 에러 (0) | 2020.04.01 |