SELinux가 활성화 되어 있는지 먼저 확인하면 좋다.
enforcing 상태라면 아래 오류가 발생할 것이다..
Nginx를 실행하니 bind() to 0.0.0.0:8000 failed (13: Permission denied)
해당 오류가 확인됐다.8000
포트에 권한이 없어서 발생한 오류로, semanage
를 이용해 http 포트를 추가해주어야 한다.
먼저 http port로 설정된 값들을 확인한 뒤, 사용하려는 포트가 없다면 추가해준다.
# semanage port -l | grep http_port_t
# semanage port -a -t http_port_t -p tcp 8000
Modifying SELinux Settings for Full NGINX and NGINX Plus Functionality
When Security-Enhanced Linux (SELinux) is enabled for Red Hat Enterprise Linux (RHEL) and related distros, its default settings prevent NGINX and NGINX Plus from performing some operations. This article explains how to modify SELinux settings to permit ful
www.nginx.com
'STUDY > ECT' 카테고리의 다른 글
M1 puppeteer 오류 (0) | 2022.04.04 |
---|---|
Nginx | 로그 경로 바꾸기 + permission denied (0) | 2022.03.25 |
CentOS 7 nginx install, ReactJS 배포 (0) | 2022.01.18 |
MacOs | Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif"... (0) | 2021.11.17 |
homebrew tomcat8 설치 (0) | 2021.06.21 |