Nginx was installed on our ubuntu 12.04 server and we want to find the version. Here is what we did:
admin@ibm-testbox:/opt/nginx/sbin$ nginx -v
The program 'nginx' can be found in the following packages:
* nginx-extras
* nginx-full
* nginx-light
* nginx-naxsi
Try: sudo apt-get install <selected package>
admin@ibm-testbox:/opt/nginx/sbin$ nginx -V
The program 'nginx' can be found in the following packages:
* nginx-extras
* nginx-full
* nginx-light
* nginx-naxsi
Try: sudo apt-get install <selected package>
Then we were trying to find if nginx was running. Here is the output:
admin@ibm-testbox:/opt/nginx/sbin$ ps waux | grep nginx
root 7652 0.0 0.0 37560 1100 ? Ss Dec20 0:00 nginx: master process /opt/nginx/sbin/nginx
nobody 7653 0.0 0.0 38008 2316 ? S Dec20 0:00 nginx: worker process
admin 23376 0.0 0.0 9388 924 pts/0 S+ 08:35 0:00 grep --color=auto nginx
The nginx was installed with PhusionPassenger module. Why nginx -v (-V) did not show version?