안녕하세요.
갑자기 아파치서버가 죽었습니다.
그래서 다시 restart도 해봤습니다.
kill 로도 죽이고 해봤는데 역시나 안되더군요..
여기서 찾아봤는데 어떤 분이 ./apachectl -t -f conf/httpd.conf 해서
syntax OK! 라고 나오면 정상적이라고 하더군요..
그런데 저는 그렇게 안 나옵니다.
다음과 같을 경우 어떻게 해야 하는지 알려주시면 감사하겠습니다.
[root@test bin]# ./apachectl -t -f conf/httpd.conf
usage: ./apachectl (start|stop|restart|fullstatus|status|graceful|configtest|help)
start - start httpd
stop - stop httpd
restart - restart httpd if running by sending a SIGHUP or start if
not running
fullstatus - dump a full status screen; requires lynx and mod_status enabled
status - dump a short status screen; requires lynx and mod_status enabled
graceful - do a graceful restart by sending a SIGUSR1 or start if not running
configtest - do a configuration syntax test
help - this screen
usage: ./apachectl (start|stop|restart|fullstatus|status|graceful|configtest|help)
start - start httpd
stop - stop httpd
restart - restart httpd if running by sending a SIGHUP or start if
not running
fullstatus - dump a full status screen; requires lynx and mod_status enabled
status - dump a short status screen; requires lynx and mod_status enabled
graceful - do a graceful restart by sending a SIGUSR1 or start if not running
configtest - do a configuration syntax test
help - this screen
usage: ./apachectl (start|stop|restart|fullstatus|status|graceful|configtest|help)
start - start httpd
stop - stop httpd
restart - restart httpd if running by sending a SIGHUP or start if
not running
fullstatus - dump a full status screen; requires lynx and mod_status enabled
status - dump a short status screen; requires lynx and mod_status enabled
graceful - do a graceful restart by sending a SIGUSR1 or start if not running
configtest - do a configuration syntax test
help - this screen
[root@test bin]# ps -ef | grep http
root 5363 1 0 Jul31 ? 00:10:35 /usr/local/apache/bin/httpd
nobody 12102 5363 0 Sep17 ? 00:05:01 [httpd <defunct>]
nobody 17505 5363 80 Sep24 ? 23:25:24 [httpd <defunct>]
nobody 4944 5363 80 Sep27 ? 21:48:29 [httpd <defunct>]
nobody 28827 5363 0 Oct05 ? 00:04:00 [httpd <defunct>]
nobody 12627 5363 0 Oct20 ? 00:08:05 [httpd <defunct>]
nobody 1575 5363 65 Oct28 ? 17:31:28 [httpd <defunct>]
nobody 1599 5363 0 Oct28 ? 00:00:02 [httpd <defunct>]
nobody 27098 5363 0 Nov22 ? 00:02:07 [httpd <defunct>]
root 4545 1 0 01:15 ? 00:00:00 /usr/local/apache/bin/httpd
root 4549 1 0 01:15 ? 00:00:00 /usr/local/apache/bin/httpd rest
root 4826 4791 0 02:12 pts/7 00:00:00 grep http
[root@test logs]# ps -auex | grep httpd
nobody 12102 0.0 0.0 0 0 ? Z Sep17 5:01 [httpd <defunct>]
nobody 17505 80.4 0.0 0 0 ? Z Sep24 84925:24 [httpd <defunct
nobody 4944 80.0 0.0 0 0 ? Z Sep27 81948:29 [httpd <defunct
nobody 28827 0.0 0.0 0 0 ? Z Oct05 4:00 [httpd <defunct>]
nobody 12627 0.0 0.0 0 0 ? Z Oct20 8:05 [httpd <defunct>]
nobody 1575 65.6 0.0 0 0 ? Z Oct28 37051:28 [httpd <defunct
nobody 1599 0.0 0.0 0 0 ? Z Oct28 0:02 [httpd <defunct>]
nobody 27098 0.0 0.0 0 0 ? Z Nov22 2:07 [httpd <defunct>]
root 4838 0.0 0.1 2368 528 pts/7 S 02:23 0:00 grep httpd LESSOP--이 곳에 서명을 적
어주십시오. - aquazen -