작업환경 : CentOS 6.4


httpd 버젼 2.2.15


tail -f 로 error.log 를 둘러보다가..

Apache has memory leak, you may encounter this when running apache for some time -
[emerg] (28)No space left on device: Couldn’t create accept lock
or
[crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed
or
[Wed Aug 14 00:00:09 2012] [error] (28)No space left on device: Cannot create SSLMutex


꼭 이러면서 아파치가 재시작이 안되곤 합니다.


이럴땐 명령어 한줄로 간단히 해결됩니다.


ipcs -s | grep apache | awk ' { print $2 } ' | xargs ipcrm sem


또는

ipcs -s | grep apache | sudo perl -alne 'qx(ipcrm -s $F[1])' 







Posted by RainC
,