I am running nginx version: nginx/1.10.2
I want to tune up my default configuration. According to https://www.nginx.com/blog/tuning-nginx/ I changed the somaxconn parameter in the OS and specified the same in nginx.conf
So my nginx.conf reads like
listen 80 backlog=16384;
But the moment I put backlog= in nginx.conf then nginx wont start with errors like
Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
[FAILED]
And removing the backlog parameter nginx just works fine. How can I specify a higher backlog in nginx