Welcome! Log In Create A New Profile

Advanced

I am having trouble with Nginx.pid file

Posted by rogergue 
I am having trouble with Nginx.pid file
September 29, 2011 04:05PM
Thank you so much for your help; I have some issues when I issue:

/etc/init.d/nginx start or restart; it return not output.

when I issued the command

/usr/local/nginx/sbin/nginx -t the test is successful

but

/usr/local/nginx/sbin/nginx-s reload It gives me: invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"

when I look at the the nginx.pid number, there is no number in there.

Can you please help me on how to solve this problem?

Thank U so much!
Re: I am having trouble with Nginx.pid file
November 11, 2011 03:23AM
Hi,

I have similar problems. When running nginx for some time, the pid file nginx.pid in /var/run/nginx/ disappears altogether. After a nginx restart it is created properly.

My compile options on CentOS 5.7:
nginx -V
nginx: nginx version: nginx/1.0.6
nginx: built by gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
nginx: TLS SNI support disabled
nginx: configure arguments: --prefix=/usr/local --sbin-path=/usr/local/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx/nginx.pid --lock-path=/var/lock/subsys/nginx/nginx.lock --user=nginx --group=nginx --with-http_flv_module --with-http_realip_module --with-http_gzip_static_module --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/data/proxy/tmp/client/ --http-proxy-temp-path=/data/proxy/tmp/proxy/ --with-http_stub_status_module --with-pcre --with-cc-opt='-I /usr/include/pcre' --with-http_ssl_module --add-module=../ngx_cache_purge-1.3 --add-module=/usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.7/ext/nginx

Any idea?

Thanks,
Nik
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 235
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready