Nginx Port Permission Denied on Cent OS 7 :: 2020/09/08 21:09

Cent OS 7를 minimal로 설치하고 nginx 를 설치했다.

다른 VM에 Cent OS 7을 설치하고, mattermost를 설치했다.

reverse proxy 설정하기 위해서 8065 포트를 설정하고, nginx를 재기동했더니...
nginx가 실행되지 않는다.
/var/log/nginx/error.log를 살펴보니...

bind() to 0.0.0.0:8065 failed (13: Permission denied)
SElinux에서 8065 포트는 사용하지 못하도록 막혀 있어서 발생한 오류.

1. SELinux에서 오픈되어 있는 http port 확인하는 방법
# semanage port -l | grep http_port_t
        만약 semanage command를 사용할 수 없다는 메시지가 뜨면, 다음으로 라이브러리를 확인하여 설치한다.
# yum provides /usr/sbin/semanage
# yum install policycoreutils-python -y

2. 특정 포트를 오픈하기 위해 SELinux에 추가
# semanage port -a -t http_port_t -p tcp 8065
3. nginx 재기동



2020/09/08 21:09 2020/09/08 21:09
Trackback Address :: http://www.yongbi.net/trackback/872
  • CPA

    Tracked from CPA | 2021/04/29 14:16 | DEL

    Great Architect & Artist -

  • here

    Tracked from here | 2021/04/30 17:44 | DEL

    Great Architect & Artist -

  • yoga

    Tracked from yoga | 2021/05/02 05:52 | DEL

    Great Architect & Artist -

  • workout

    Tracked from workout | 2021/05/02 08:13 | DEL

    Great Architect & Artist -

  • workout

    Tracked from workout | 2021/05/02 10:14 | DEL

    Great Architect & Artist -

  • there

    Tracked from there | 2021/05/03 05:54 | DEL

    Great Architect & Artist -

  • there

    Tracked from there | 2021/05/03 09:52 | DEL

    Great Architect & Artist -

  • there

    Tracked from there | 2021/05/04 15:19 | DEL

    Great Architect & Artist -

  • soap

    Tracked from soap | 2021/05/05 16:38 | DEL

    Great Architect & Artist -

  • lixi88

    Tracked from lixi88 | 2021/05/07 10:02 | DEL

    Great Architect & Artist -

  • here

    Tracked from here | 2021/05/08 07:02 | DEL

    Great Architect & Artist -

  • esports

    Tracked from esports | 2021/05/08 12:21 | DEL

    Great Architect & Artist -

  • esports

    Tracked from esports | 2021/05/09 05:52 | DEL

    Great Architect & Artist -

  • cinema

    Tracked from cinema | 2021/05/09 08:37 | DEL

    Great Architect & Artist -

  • cinema

    Tracked from cinema | 2021/05/09 11:33 | DEL

    Great Architect & Artist -

  • esports

    Tracked from esports | 2021/05/09 12:30 | DEL

    Great Architect & Artist -

[로그인][오픈아이디란?]
오픈아이디로만 댓글을 남길 수 있습니다
Name
Password
Homepage

Secret
< PREV | 1| ... 9|10|11|12|13|14|15|16|17| ... 639| NEXT >