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
  • mobet

    Tracked from mobet | 2021/08/11 21:48 | DEL

    Great Architect & Artist -

  • bitcoin

    Tracked from bitcoin | 2021/08/13 05:44 | DEL

    Great Architect & Artist -

  • crypto

    Tracked from crypto | 2021/08/13 16:07 | DEL

    Great Architect & Artist -

  • dgthai

    Tracked from dgthai | 2021/08/14 01:39 | DEL

    Great Architect & Artist -

  • xnxx

    Tracked from xnxx | 2021/08/15 07:40 | DEL

    Great Architect & Artist -

  • iphone

    Tracked from iphone | 2021/09/01 19:20 | DEL

    Great Architect & Artist -

  • whisky

    Tracked from whisky | 2021/09/04 04:01 | DEL

    Great Architect & Artist -

  • ballet

    Tracked from ballet | 2021/09/04 19:02 | DEL

    Great Architect & Artist -

  • UFABET

    Tracked from UFABET | 2021/09/04 21:50 | DEL

    Great Architect & Artist -

  • xxnx

    Tracked from xxnx | 2021/09/05 17:05 | DEL

    Great Architect & Artist -

  • discuss

    Tracked from discuss | 2021/09/05 22:16 | DEL

    Great Architect & Artist -

  • xnxxx

    Tracked from xnxxx | 2021/09/07 19:19 | DEL

    Great Architect & Artist -

  • Vertigo

    Tracked from Vertigo | 2021/09/07 20:09 | DEL

    Great Architect & Artist -

  • other

    Tracked from other | 2021/09/08 05:59 | DEL

    Great Architect & Artist -

  • other

    Tracked from other | 2021/09/08 06:00 | DEL

    Great Architect & Artist -

  • Source

    Tracked from Source | 2021/09/09 03:03 | DEL

    Great Architect & Artist -

  • sex

    Tracked from sex | 2021/09/15 17:32 | DEL

    Great Architect & Artist -

  • waffles

    Tracked from waffles | 2021/09/16 14:12 | DEL

    Great Architect & Artist -

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

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