XFileSharing Pro - need help about nginx

Message
Author
upmorefiles
Posts: 23
Joined: Aug 14, 2012 9:10 am

need help about nginx

#1 Postby upmorefiles » Sep 15, 2012 10:28 am

Hi Sir nowadays after some times nginx is giving connection timed out error so i need to increase the number of connections so can you tell me thanks


upmorefiles
Posts: 23
Joined: Aug 14, 2012 9:10 am

#3 Postby upmorefiles » Sep 15, 2012 5:36 pm



sir here is my server details so can you please let me know how many parameters i have to set

Dual opteron 6128
32GB ram
4 x 2TB
1Gbit
SW raid1
CentOS 64bit

i hope u will i will get the best answer thanks once again !

sherayusuf3
Posts: 94
Joined: Jan 18, 2009 4:29 am

#4 Postby sherayusuf3 » Sep 26, 2012 1:50 pm

on nginx.conf file

add "worker_rlimit_nofile 30000;" after "worker_processes 4"
and change "worker_connections 4096;"


on /etc/security/limits.conf
add :

nginx soft nofile 10000
nginx hard nofile 30000


on /etc/sysctl.conf add:
fs.file-max = 999999


reboot your server to take effect (quick n dirty way)


Return to “XFileSharing Pro”