Apachectl stop (20014)Internal error: Error retrieving pid file logs/httpd.pid
Apache를 중지하는 중에 Error가 발생했다. 에러 내용은 다음과 같다.
[devwas:root:/was/IBM/HTTPServer/bin]# ./apachectl stop (20014)Internal error: Error retrieving pid file logs/httpd.pid Remove it before continuing if it is corrupted. you have mail in /usr/spool/mail/root |
해당 내용은 Apache를 중지할 때 중지할 pid값을 가져오지 못해 발생하는 것으로 판단된다.
실제 httpd.pid 파일의 크기도 0이고 내용을 보면 아무런 내용이 없다.
[devwas:root:/was/IBM/HTTPServer/bin]# cd ../logs [devwas:root:/was/IBM/HTTPServer/logs]# [devwas:root:/was/IBM/HTTPServer/logs]# ls -al total 48 drwxr-xr-x 3 root system 4096 Apr 17 13:57 ./ drwxr-xr-x 24 root system 4096 Aug 22 2013 ../ -rw-r--r-- 1 root system 878 Aug 22 2013 access_log srwx------ 1 nobody nobody 0 Aug 24 2013 adminSocket= -rw-r--r-- 1 root system 810 Aug 24 2013 admin_access_log -rw-r--r-- 1 root system 1264 Feb 20 2014 admin_error.log srwx------ 1 nobody system 0 Apr 17 09:44 cgisock.2752728= srwx------ 1 nobody system 0 Nov 3 2014 cgisock.5767356= srwx------ 1 nobody system 0 Apr 17 13:57 cgisock.6291680= srwx------ 1 nobody system 0 Oct 23 2014 cgisock.6357140= srwx------ 1 nobody system 0 Oct 20 2014 cgisock.6619370= srwx------ 1 nobody system 0 Sep 27 2016 cgisock.8650846= -rw-r--r-- 1 root system 2587 Aug 22 2013 error_log -rw-r--r-- 1 root system 0 Apr 17 13:57 httpd.pid drwxr-xr-x 2 root system 256 Aug 22 2013 install/ [devwas:root:/was/IBM/HTTPServer/logs]# [devwas:root:/was/IBM/HTTPServer/logs]# id uid=0(root) gid=0(system) groups=2(bin),3(sys),7(security),8(cron),10(audit),11(lp),205(idsldap) [devwas:root:/was/IBM/HTTPServer/logs]# [devwas:root:/was/IBM/HTTPServer/logs]# vi httpd.pid "httpd.pid" ~ ~ ~ ~ ~ :q! [devwas:root:/was/IBM/HTTPServer/logs]# |
이를 해결하기 위해 원본은 백업해두고 httpd.pid에 root계정의 pid값을 넣는다.
[devwas:root:/was/IBM/HTTPServer/logs]# [devwas:root:/was/IBM/HTTPServer/logs]# cp -p httpd.pid httpd.pid.org [devwas:root:/was/IBM/HTTPServer/logs]# [devwas:root:/was/IBM/HTTPServer/logs]# ps -ef | grep httpd root 6291680 1 0 Apr 17 - 3:24 /was/IBM/HTTPServer/bin/httpd -d /was/IBM/HTTPServer -k start nobody 7405588 6291680 0 Apr 17 - 0:00 /was/IBM/HTTPServer/bin/httpd -d /was/IBM/HTTPServer -k start nobody 7798806 6291680 0 Apr 17 - 272:52 /was/IBM/HTTPServer/bin/httpd -d /was/IBM/HTTPServer -k start root 8061036 6881342 0 00:15:40 pts/2 0:00 grep httpd nobody 8192054 6291680 0 Apr 17 - 19:23 /was/IBM/HTTPServer/bin/httpd -d /was/IBM/HTTPServer -k start nobody 9240602 6291680 0 Jun 05 - 162:54 /was/IBM/HTTPServer/bin/httpd -d /was/IBM/HTTPServer -k start nobody 10289310 6291680 0 Apr 17 - 274:26 /was/IBM/HTTPServer/bin/httpd -d /was/IBM/HTTPServer -k start [devwas:root:/was/IBM/HTTPServer/logs]# [devwas:root:/was/IBM/HTTPServer/logs]# vi httpd.pid "httpd.pid" 6291680 ~ ~ ~ ~ ~ "httpd.pid" 1 line, 8 characters [devwas:root:/was/IBM/HTTPServer/logs]# [devwas:root:/was/IBM/HTTPServer/logs]# ls -al total 56 drwxr-xr-x 3 root system 4096 Sep 20 05:36 ./ drwxr-xr-x 24 root system 4096 Aug 22 2013 ../ -rw-r--r-- 1 root system 878 Aug 22 2013 access_log srwx------ 1 nobody nobody 0 Aug 24 2013 adminSocket= -rw-r--r-- 1 root system 810 Aug 24 2013 admin_access_log -rw-r--r-- 1 root system 1264 Feb 20 2014 admin_error.log srwx------ 1 nobody system 0 Apr 17 09:44 cgisock.2752728= srwx------ 1 nobody system 0 Nov 3 2014 cgisock.5767356= srwx------ 1 nobody system 0 Oct 23 2014 cgisock.6357140= srwx------ 1 nobody system 0 Oct 20 2014 cgisock.6619370= srwx------ 1 nobody system 0 Sep 20 05:36 cgisock.7733266= srwx------ 1 nobody system 0 Sep 27 2016 cgisock.8650846= -rw-r--r-- 1 root system 2587 Aug 22 2013 error_log -rw-r--r-- 1 root system 8 Sep 20 05:36 httpd.pid -rw-r--r-- 1 root system 0 Apr 17 13:57 httpd.pid.org drwxr-xr-x 2 root system 256 Aug 22 2013 install/ |
다시 Apache를 중지해보면 정상적으로 처리됨을 확인할 수 있다.
[devwas:root:/was/IBM/HTTPServer/logs]# [devwas:root:/was/IBM/HTTPServer/logs]# cd ../bin [devwas:root:/was/IBM/HTTPServer/bin]# [devwas:root:/was/IBM/HTTPServer/bin]# ./apachectl stop [devwas:root:/was/IBM/HTTPServer/bin]# [devwas:root:/was/IBM/HTTPServer/bin]# ps -ef | grep httpd root 7405590 6881342 0 00:16:09 pts/2 0:00 grep httpd [devwas:root:/was/IBM/HTTPServer/bin]# |
위 에러를 처리한 내용은 아래 파일에 담아두었다.
댓글
이 글 공유하기
다른 글
-
SVN already locked 해결 방법 how to unlock
SVN already locked 해결 방법 how to unlock
2021.07.27 -
[C#] FarPoint Spread 셀 자동 줄바꿈 Multiline, WordWrap
[C#] FarPoint Spread 셀 자동 줄바꿈 Multiline, WordWrap
2019.05.08 -
Microsoft Visual Studio 2013의 작동이 중지되었습니다. 솔루션 실행안됨
Microsoft Visual Studio 2013의 작동이 중지되었습니다. 솔루션 실행안됨
2017.09.15 -
이클립스(eclipse) 오류창 없이 실행되지 않는 문제 해결. 이클립스 로딩중 종료
이클립스(eclipse) 오류창 없이 실행되지 않는 문제 해결. 이클립스 로딩중 종료
2017.03.16