2010년 12월 17일 금요일

ulimit 값 변경해주기

리눅스 설치때마다 한번씩 해주는 작업이라 항상 가물가물하다.
이번에 적어두자.

http://posidev.com/blog/2009/06/04/set-ulimit-parameters-on-ubuntu/ 가 원문.

  1. /etc/security/limits.conf 에 적당히 내용 추가
    yoonkn           soft    nofile          20000       
    yoonkn           hard    nofile          65000
    yoonkn           soft    core            100000
    yoonkn           hard    core            100000
  2. /etc/pam.d/common-session 에 아래 내용 추가
    session required pam_limits.so
  3. reboot



댓글 없음: