
내 웹 서버는 CentOS를 실행하고 있으며 내 포럼의 특정 페이지에 액세스할 때마다 httpd
작동이 중지되어 정확한 파일을 찾아낼 수 없는 것 같습니다.
현재 CentOS/UNIX 기반 서버에 열려 있는 요청이 있는 페이지를 볼 수 있는 방법이 있습니까?
답변1
당신은 사용해 볼 수 있습니다아파치톱. 다음과 같은 출력이 표시됩니다.
답변2
mod_status
활성화하고( ExtendedStatus
켜기로 설정할 수도 있음) 다음과 같은 화이트리스트에 있는 경우 :
#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
에서 프로세스와 스레드가 수행하는 작업, 가동 시간 등에 대한 목록을 얻을 수 있습니다 http://your.server/server-status
. (단, 서버가 완전히 응답하지 않는 경우에는 도움이 되지 않습니다.)
답변3
tail /var/log/apache2/access.log
시도해 보셨나요 tail /var/log/apache2/access.log
? 문제가 발생하면 일반적으로 tail -F /var/log/apache2/*.log
대문자를 주목하기 시작합니다 F
. 일부 Unices는 이를 지원하지 않습니다. 이 경우 다음으로 변경합니다.f