Command
nginx -vExplanation
Displays the installed version of Nginx.
Examples
Show version only
nginx -vShow version with configure arguments
nginx -Vnginx -vDisplays the installed version of Nginx.
Show version only
nginx -vShow version with configure arguments
nginx -V