리눅스 분류
ulimit 에서 file descriptor 늘리는 방법?
작성자 정보
- 고우찬 작성
- 작성일
컨텐츠 정보
- 2,222 조회
- 0 추천
- 목록
본문
안녕하세요.
질문이 있습니다.
linux 2.4.20 커널을 쓰는데..
ulimit 값이 안 늘어 나서요..
아래와 같이 세팅을 하면...
-
Edit
/etc/security/limits.conf
and add the lines:* soft nofile 1024 * hard nofile 65535
- Edit
/etc/pam.d/login
, adding the line:session required /lib/security/pam_limits.so
root 로 로그인하면 잘 늘어나 있습니다.
그런데.. 일반 유저(abcd)로 ssh, 커버로스 등으로 접속하면 여전히 1024 네요..
[hostA]$ ulimit -n 8096
bash: ulimit: open files: cannot modify limit: 명령이 허용되지 않음
위와 같이 메시지가 나옵니다.
하지만..
1. root 로 접속하여 su - abcd
2. telnet hostA 하여 abcd 로 로그인
위와 같이 하면 늘어난 값으로 나옵니다.
단지 일반 유저로 ssh, 커버로스 로그인 만 하면 1024 로 나오네요..
어떻게 하면 좋을까요???
관련자료
-
이전
-
다음
댓글 0
등록된 댓글이 없습니다.