文章目录
  1. 1. /usr/local/nginx/sbin/nginx -v
  2. 2. /usr/local/nginx/sbin/nginx -V

/usr/local/nginx/sbin/nginx -v

nginx version: nginx/0.7.61

/usr/local/nginx/sbin/nginx -V

nginx version: nginx/0.7.61
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-44)
configure arguments: —user=www —group=www —prefix=/usr/local/nginx/ —with-http_stub_status_module —with-http_ssl_module —with-md5=/usr/lib —with-sha1=/usr/lib

[root@nagios nginx-0.8.29]# ./configure —user=www —group=www —prefix=/usr/local/nginx/ —with-http_stub_status_module —with-http_ssl_module —with-md5=/usr/lib —with-sha1=/usr/lib
[root@nagios nginx-0.8.29]# make
[root@nagios nginx-0.8.29]# mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.0.7
[root@nagios nginx-0.8.29]# cp objs/nginx /usr/local/nginx/sbin/
[root@nagios nginx-0.8.29]# /usr/local/nginx/sbin/nginx -t
the configuration file /usr/local/nginx//conf/nginx.conf syntax is ok
configuration file /usr/local/nginx//conf/nginx.conf test is successful

[root@nagios nginx-0.8.29]# kill -USR2 cat /usr/local/nginx/nginx.pid
nginx.pid nginx.pid.oldbin

[root@nagios nginx-0.8.29]# kill -QUIT cat /usr/local/nginx/nginx.pid.oldbin
[root@nagios nginx-0.8.29]# /usr/local/nginx/sbin/nginx -v

nginx version: nginx/0.8.29

文章目录
  1. 1. /usr/local/nginx/sbin/nginx -v
  2. 2. /usr/local/nginx/sbin/nginx -V