Linux
Unable to open logs
CHOMAN
2019. 8. 29. 09:25
Unable to open logs
apache 시작 에러 발생
[root@Webtest conf.d]# service httpd start
httpd (을)를 시작 중: [실패]
/etc/httpd/logs/error_log
Unable to open logs
원인
로그 파일 경로에 대한 권한 혹은 소유자 문제
httpd 설정 등 다양한 원인이 있을수 있음
open file limits 설정
[root@Webtest ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 127655
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 127655
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
open files (-n) 1024 부분을 65535 로 수정할 필요?가 있어 보인다.
/etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535
수정후 리부팅 강행 에러없이 잘 시작됨