最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

 更新時(shí)間:2018年10月12日 14:32:07   投稿:wdc  
在Windows下使用Nginx,我們需要掌握一些基本的操作命令,今天為大家分享幾個(gè)Windows下操作Nginx的基本命令

在Windows下使用Nginx,我們需要掌握一些基本的操作命令,比如:啟動(dòng)、停止Nginx服務(wù),重新載入Nginx等,下面我就進(jì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只是簡單顯示版本信息,V不但顯示版本信息,還顯示配置參數(shù)信息。

6、測試或載入指定配置文件:

測試配置文件

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ǔ)的,很空間記住,多嘗試幾次就可以了

相關(guān)文章

最新評(píng)論

屯昌县| 花莲市| 长春市| 彭泽县| 岳普湖县| 阿城市| 永州市| 中江县| 蕉岭县| 郓城县| 南雄市| 额尔古纳市| 郁南县| 甘泉县| 庆阳市| 化州市| 买车| 辰溪县| 夏河县| 宁阳县| 上饶县| 噶尔县| 工布江达县| 九龙县| 彭山县| 潜江市| 枞阳县| 东明县| 烟台市| 望都县| 蓬安县| 疏勒县| 永福县| 卓资县| 六盘水市| 财经| 塔城市| 南华县| 辽阳县| 韶关市| 特克斯县|