nginx error [Resource temporarily unavailable]

1786 단어 nginxerror
오류 메시지
2013/10/22 16:38:06 [emerg] 7278#0: setuid(502) failed (11: Resource temporarily unavailable)
2013/10/22 16:38:06 [emerg] 7279#0: setuid(502) failed (11: Resource temporarily unavailable)
2013/10/22 16:38:06 [emerg] 7280#0: setuid(502) failed (11: Resource temporarily unavailable)
2013/10/22 16:38:06 [emerg] 7281#0: setuid(502) failed (11: Resource temporarily unavailable)
2013/10/22 16:38:06 [alert] 7277#0: worker process 7278 exited with fatal code 2 and cannot be respawned
2013/10/22 16:38:06 [alert] 7277#0: worker process 7279 exited with fatal code 2 and cannot be respawned
2013/10/22 16:38:06 [alert] 7277#0: worker process 7280 exited with fatal code 2 and cannot be respawned
2013/10/22 16:38:06 [alert] 7277#0: worker process 7281 exited with fatal code 2 and cannot be respawned
2013/10/22 16:38:06 [emerg] 7282#0: setuid(502) failed (11: Resource temporarily unavailable)
2013/10/22 16:38:06 [alert] 7277#0: worker process 7282 exited with fatal code 2 and cannot be respawned

문제 분석
1.  502      (          , 502       ),              
    grep --color '502' /etc/password
2.  UID 502        (     、    )
  ps -U 'UID 502    '  | wc -l  #   
  lsof -u 'UID 502    ' | wc -l #   
3.  UID 502   Ulimit    
    su -  'UID 502    '
  ulimit -n
4.    2 3    ,       UID 502                
       2 3       ,UID 502               ‘1024’,            3000 ,          

3. 처리 방법
1.  UID 502    ulimit
cat >>/etc/security/limits.conf <<EOF
www   soft    nproc   51200
www   hard    nproc   16384
www   soft    nofile   51200
www   hard    nofile   51200
2.  nginx  
   nginx -s stop
   nginx

이 서비스 가 성공 적 으로 시작 되 었 습 니 다. 문제 가 해결 되 었 습 니 다.

좋은 웹페이지 즐겨찾기