首頁  >  文章  >  運維  >  Linux系統如何查看NGINX版本資訊指令

Linux系統如何查看NGINX版本資訊指令

WBOY
WBOY轉載
2023-05-19 12:25:065906瀏覽

1、 查看伺服器上安裝的nginx版本號,主要是透過nginx的-v或-V選項,檢視方法如下圖

  -v 顯示 nginx 的版本。

  -V 顯示nginx 的版本,編譯器版本和設定參數

#[root@zq ~]#nginx -V

#nginx version: nginx/1.16.1

built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)

built with OpenSSL 1.0. 2k-fips 26 Jan 2017

TLS SNI support enabled

configure arguments: –prefix=/etc/nginx –sbin-path=/usr/sbin/nginx –modules-path =/usr/lib64/nginx/modules –conf-path=/etc/nginx/nginx.conf –error-log-path=/var/log/nginx/error.log –http-log-path=/ var/log/nginx/access.log –pid-path=/var/run/nginx.pid –lock-path=/var/run/nginx.lock –http-client-body-temp-path=/ var/cache/nginx/client_temp –http-proxy-temp-path=/var/cache/nginx/proxy_temp –http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp –http-uwsgi-temptemp -path=/var/cache/nginx/uwsgi_temp –http-scgi-temp-path=/var/cache/nginx/scgi_temp –user=nginx –group=nginx –with-compat –with-file- aio –with-threads –with-http_addition_module –with-http_auth_request_module –with-http_dav_module –with-http_flv_module –with-http_gunzip_module &dho;with-http_flv_module –with-http_gunzip_module & mwithash; ule –with- http_realip_module –with-http_secure_link_module –with-http_slice_module –with-http_ssl_module –with-http_stub_status_module –? stream_realip_module –with-stream_ssl_module –with-stream_ssl_preread_module –with-cc-opt=’-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-prot buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC’ –with-ld-opt=’-Wl,-z,relro -Wl,-z,now -pie’

#2、使用rpm -qa | grep nginx查看nginx版本

#[root@zq ~]#rpm -qa | grep nginx

#nginx-1.16.1-1.el7.ngx.x86_64

什麼是Linux系統

Linux是一種免費使用和自由傳播的類UNIX作業系統,是一個基於POSIX的多用戶、多任務、支援多執行緒和多CPU的作業系統,使用Linux能運行主要的Unix工具軟體、應用程式和網路協定。

以上是Linux系統如何查看NGINX版本資訊指令的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:yisu.com。如有侵權,請聯絡admin@php.cn刪除