好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁(yè) > 知識(shí)庫(kù) > 查看nginx配置文件路徑和資源文件路徑的方法

查看nginx配置文件路徑和資源文件路徑的方法

熱門(mén)標(biāo)簽:百度地圖底圖標(biāo)注 中國(guó)地圖標(biāo)注上各個(gè)省 電銷(xiāo)智能機(jī)器人試用 智能電銷(xiāo)機(jī)器人真的有用么 激光標(biāo)記地圖標(biāo)注 高德地圖標(biāo)注足跡怎么打標(biāo) 企業(yè)辦理400電話收費(fèi)標(biāo)準(zhǔn) 撫州市城區(qū)地圖標(biāo)注 新鄉(xiāng)牧野400電話申請(qǐng)

查看nginx配置文件路徑

通過(guò) nginx -t

nginx -t命令的原始作用是用來(lái)驗(yàn)證nginx配置文件格式和配置是否存在異常,通過(guò)該命令會(huì)輸出nginx的配置文件的路徑和驗(yàn)證結(jié)果,在輸出結(jié)果中就可以找到當(dāng)前的nginx的加載的配置文件的地址,如下所示:

nginx -t

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

由此可知nginx的配置文件在 /etc/nginx/nginx.conf這個(gè)文件夾下

通過(guò) ps -ef|grep nginx

如果在nginx啟動(dòng)的過(guò)程中顯式的配置了nginx配置文件的加載路徑,通過(guò)這樣的方式就可以很簡(jiǎn)單的看到當(dāng)前的配置文件加載路徑

通過(guò) locate 命令來(lái)進(jìn)行查找

如果在服務(wù)器中有安裝locate命令的話,可以通過(guò) locate nginx.conf 這個(gè)命令來(lái)進(jìn)行查找,但是如果存在多個(gè)nginx.conf 文件的時(shí)候,就很難判斷到底加載的是哪一個(gè)ngxin配置文件

通過(guò) nginx -V 命令來(lái)進(jìn)行查找

通過(guò)nginx -V命令可以看到安裝時(shí)的所有配置信息,通過(guò)查找里面的 --conf-path 這個(gè)配置信息,可以找到對(duì)應(yīng)的配置文件的路徑,如下所示:

nginx -V

nginx version: nginx/1.12.2
built by gcc 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC) 
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --add-module=/usr/local/src/headers-more-nginx-module-0.33 --prefix=/usr/share/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 --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/run/nginx.pid --lock-path=/run/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-http_auth_request_module --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module=dynamic --with-mail=dynamic --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-debug --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --with-ld-opt='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-E'

查看nginx資源文件路徑

通過(guò) nginx -V 命令

通過(guò)nginx -V 命令,然后查找命令中返回的 --prefix= 配置,該配置對(duì)應(yīng)的路徑便為nginx的資源文件的路徑

到此這篇關(guān)于查看nginx配置文件路徑和資源文件路徑的方法的文章就介紹到這了,更多相關(guān)nginx配置文件路徑內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

標(biāo)簽:海西 辛集 臨汾 邯鄲 西安 南通 延安 忻州

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《查看nginx配置文件路徑和資源文件路徑的方法》,本文關(guān)鍵詞  查看,nginx,配置文件,路徑,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《查看nginx配置文件路徑和資源文件路徑的方法》相關(guān)的同類(lèi)信息!
  • 本頁(yè)收集關(guān)于查看nginx配置文件路徑和資源文件路徑的方法的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章