티스토리 뷰

커스터마이징을 해보자...

 

vim /etc/sysctl.conf
fs.file-max = 65535

 

일시적인 방법
ulimit -n 65535

 

리부팅 해야 함 밑에껀

vi /etc/security/limits.conf
nginx       soft    nofile   10000
nginx       hard   nofile  30000

 

vi /usr/local/nginx/conf/nginx.conf
# set open fd limit to 30000
worker_rlimit_nofile 30000;

 

# nginx -t
2010/11/01 17:07:46 [info] 9520#0: the configuration file /etc/nginx/nginx.conf syntax is ok
2010/11/01 17:07:46 [info] 9520#0: the configuration file /etc/nginx/nginx.conf was tested successfully

 

/etc/init.d/nginx restart

 

 

 

 

 

참고

http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=talkbox&wr_id=1049836

댓글
댓글쓰기 폼
공지사항