怎么查看服务器上安装的nginx版本号,主要是通过ngix的-v或-V选项,如下所示:
[root@test sbin]# ./nginx -v
nginx version: nginx/1.8.1
[root@test sbin]# ./nginx -V
nginx version: nginx/1.8.1
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
built with OpenSSL 1.0.2d 9 Jul 2015
TLS SNI support enabled
configure arguments: --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-openssl=/opt/library/openssl-1.0.2d --add-module=/opt/code/git/nginx_upstream_check_module --add-module=/opt/code/git/nginx-http-concat
参数说明:
-v
显示 nginx 的版本。
-V
显示 nginx 的版本,编译器版本和配置参数。
Post a comment now »
本文目前不可评论
Sorry, the comment form is closed at this time.
No comments yet.