濮阳杆衣贸易有限公司

主頁(yè) > 知識(shí)庫(kù) > Windows下Nginx的啟動(dòng)停止等基本操作命令詳解

Windows下Nginx的啟動(dòng)停止等基本操作命令詳解

熱門標(biāo)簽:話術(shù)外呼系統(tǒng) 廣東如何申請(qǐng)400電話 北京人工外呼系統(tǒng)廠家 哈爾濱400電話去哪辦理 400電話申請(qǐng)要什么條件 寧波400電話辦理對(duì)企業(yè)的意義 i智能電話機(jī)器人yeta 西柏坡地圖標(biāo)注 燃?xì)夤芫€地圖標(biāo)注顏色

在Windows下使用Nginx,我們需要掌握一些基本的操作命令,比如:?jiǎn)?dòng)、停止Nginx服務(wù),重新載入Nginx等,下面我就進(jìn)行一些簡(jiǎn)單的介紹。

1、啟動(dòng):

C:\server\nginx-1.0.2>start nginx

C:\server\nginx-1.0.2>nginx.exe

注:建議使用第一種,第二種會(huì)使你的cmd窗口一直處于執(zhí)行中,不能進(jìn)行其他命令操作。

2、停止:

C:\server\nginx-1.0.2>nginx.exe -s stop

C:\server\nginx-1.0.2>nginx.exe -s quit

注:stop是快速停止nginx,可能并不保存相關(guān)信息;quit是完整有序的停止nginx,并保存相關(guān)信息。

3、重新載入Nginx:

C:\server\nginx-1.0.2>nginx.exe -s reload

當(dāng)配置信息修改,需要重新載入這些配置時(shí)使用此命令。

4、重新打開日志文件:

C:\server\nginx-1.0.2>nginx.exe -s reopen

5、查看Nginx版本:

C:\server\nginx-1.0.2>nginx -v

nginx: nginx version: nginx/1.0.2

C:\server\nginx-1.0.2>nginx -V

nginx: nginx version: nginx/1.0.2 
nginx: TLS SNI support enabled 
nginx: configure arguments: --builddir=objs.msvc8 --crossbuild=win32 --with-debug --prefix= --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid --http-log-path=logs/access.log --error-log-path=logs/error.log --sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp --with-cc-opt=-DFD_SETSIZE=1024 --with-pcre=objs.msvc8/lib/pcre-7.9 --with-zlib=objs.msvc8/lib/zlib-1.2.3 --with-select_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_stub_status_module --with-http_flv_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-mail --with-ipv6 --with-openssl=objs.msvc8/lib/openssl-0.9.8r --with-openssl-opt=enable-tlsext --with-http_ssl_module --with-mail_ssl_module

注:v只是簡(jiǎn)單顯示版本信息,V不但顯示版本信息,還顯示配置參數(shù)信息。

6、測(cè)試或載入指定配置文件:

測(cè)試配置文件

C:\server\nginx-1.0.2>nginx.exe -t -c conf/default.conf

nginx: the configuration file C:\server\nginx-1.0.2/conf/default.conf syntax isok
nginx: configuration file C:\server\nginx-1.0.2/conf/default.conf test is successful

載入指定配置文件

C:\server\nginx-1.0.2>start nginx.exe -c conf/default.conf

本文介紹的這幾個(gè)命令都是非?;A(chǔ)的,很空間記住,多嘗試幾次就可以了

標(biāo)簽:巴中 開封 張家口 湘潭 襄陽(yáng) 珠海 阜陽(yáng) 西藏

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Windows下Nginx的啟動(dòng)停止等基本操作命令詳解》,本文關(guān)鍵詞  Windows,下,Nginx,的,啟動(dòng),停止,;如發(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)文章
  • 下面列出與本文章《Windows下Nginx的啟動(dòng)停止等基本操作命令詳解》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于Windows下Nginx的啟動(dòng)停止等基本操作命令詳解的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    屯留县| 达拉特旗| 新巴尔虎左旗| 织金县| 阿拉善左旗| 杂多县| 桐城市| 秭归县| 龙泉市| 阳山县| 吉安市| 江口县| 家居| 芜湖县| 西华县| 武定县| 古蔺县| 丹凤县| 沙雅县| 霍州市| 辛集市| 马鞍山市| 旌德县| 耒阳市| 横峰县| 阿鲁科尔沁旗| 泰兴市| 陇南市| 象州县| 永修县| 盐池县| 梁山县| 泰兴市| 琼海市| 柞水县| 滨州市| 通山县| 虹口区| 安乡县| 册亨县| 澳门|