안녕하세요.리눅스 초보입니다.
apachectl 명령을 치면 다음과 같은 내용의 글이 뜹니다.
/usr/sbin/apachectl restart: httpd not running, trying to start
WARNING: MaxClients of 512 exceeds compile time limit of 256 servers,
lowering MaxClients to 256. To increase, please see the
HARD_SERVER_LIMIT define in src/include/httpd.h.
/usr/sbin/apachectl restart: httpd could not be started
설정이 잘못되었나 확인을 해봐도 같은 아래와 같이 뜹니다.
./apachectl configtest
WARNING: MaxClients of 512 exceeds compile time limit of 256 servers,
lowering MaxClients to 256. To increase, please see the
HARD_SERVER_LIMIT define in src/include/httpd.h.
Syntax OK
이유가 무엇인지 고수님들 답변을 바랍니다.--이 곳에 서명을 적어주십시오.
감사합니다.
MaxClients 512 가 컴파일된 한계 256 을 넘어서 생긴 경고입니다. httpd.conf 의 MaxClients 를 256 이하로 낮추거나, 소스에서 HARD_SERVER_LIMIT 를 늘려 다시 빌드하면 됩니다.
configtest 의 Syntax OK 는 설정 문법이 맞다는 뜻이고, 시작이 안 되는 원인은 이 경고 때문입니다.