티스토리 뷰

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

 

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

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함