"[emerg]: bind() to" and relation between 'logs' directory and 'pid' direction

addictofnginx nginx-forum at nginx.us
Thu May 28 06:33:38 UTC 2015


I had compiled my Nginx using '.configure', 'make' and 'make install'

nginx.pid file occurs on 'logs' directory as default. If I change set 'pid'
directive (e.g. pid sbin/nginx.pid) on my nginx.conf file then I cannot
restart Nginx and I get following message at second restart service.

[emerg]: bind() to failed (98: Address already in use)

And if I change the direction as 'pid logs/nginx.pid' everything is

Would it be possible to change Nginx default settings?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259208,259208#msg-259208

More information about the nginx mailing list