메뉴 건너뛰기

infra

[apache] apache virtual host (13) error

lispro062014.11.13 00:51조회 수 705댓글 0

    • 글자 크기
아파치 포트가 1024보다 크고, root 권한으로 실행하는데,
아래와 같은 오류가 발생하면서 아파치 서버가 실행되지 않는 경우가 있다.

$ service httpd start
Starting httpd: 
(13)Permission denied: make_sock: could not bind to address [::]:8000
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:8000
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]

이 경우 SELinux(Security-Enhanced Linux) 정책으로 인한 문제이므로, 아래와 같이 확인한다.

$ sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

$ setenforce 0

$ service httpd start
Starting httpd: 
                                                           [  OK  ]

from http://dochi575.egloos.com/viewer/4867779
lispro06 (비회원)
    • 글자 크기

댓글 달기

suritam9
2024.03.10 조회 1
suritam9
2024.03.12 조회 1
suritam9
2024.03.11 조회 4
suritam9
2022.10.26 조회 22
suritam9
2022.07.10 조회 78
suritam9
2021.01.02 조회 130
첨부 (0)
위로