HowTo: Find Out Nginx Web Server Version

Posted on in Categories last updated November 23, 2012

How do I print Nginx web server version using command line option under Unix like operating systems?


You can pass the -v or -V option to display nginx web server version. The syntax is:

nginx -v

Sample outputs:

nginx version: nginx/1.2.3

The -V option shows nginx version, compiler version and configure parameters.

nginx -V

Sample outputs:

nginx version: nginx/1.2.3
built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) 
TLS SNI support enabled
configure arguments: --without-http_autoindex_module --without-http_userid_module --without-http_auth_basic_module --without-http_fastcgi_module --without-http_empty_gif_module --with-poll_module --with-http_stub_status_module --with-http_ssl_module --with-ipv6 --with-http_geoip_module

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Leave a Comment