国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > Nginx > 正文

Windows下Nginx的啟動停止等基本操作命令詳解

2024-08-30 12:24:43
字體:
來源:轉載
供稿:網友

在Windows下使用Nginx,我們需要掌握一些基本的操作命令,比如:啟動、停止Nginx服務,重新載入Nginx等,下面我就進行一些簡單的介紹。

1、啟動:

C:/server/nginx-1.0.2>start nginx

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

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

2、停止:

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

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

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

3、重新載入Nginx:

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

當配置信息修改,需要重新載入這些配置時使用此命令。

4、重新打開日志文件:

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

5、查看Nginx版本:

C:/server/nginx-1.0.2>nginx -vnginx: nginx version: nginx/1.0.2

C:/server/nginx-1.0.2>nginx -Vnginx: 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不但顯示版本信息,還顯示配置參數信息。

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

測試配置文件

C:/server/nginx-1.0.2>nginx.exe -t -c conf/default.confnginx: the configuration file C:/server/nginx-1.0.2/conf/default.conf syntax isoknginx: 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

本文介紹的這幾個命令都是非常基礎的,很空間記住,多嘗試幾次就可以了

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 台湾省| 青河县| 南雄市| 和平县| 卓尼县| 乌拉特中旗| 延吉市| 潢川县| 海兴县| 东兰县| 景洪市| 冷水江市| 南投县| 新田县| 喜德县| 米易县| 宣恩县| 嘉兴市| 苗栗市| 旌德县| 陆良县| 鞍山市| 清水县| 汕头市| 弥渡县| 乌苏市| 江阴市| 安义县| 嘉禾县| 武穴市| 浦县| 城口县| 夹江县| 苍南县| 基隆市| 林甸县| 渝中区| 贵南县| 南阳市| 巴塘县| 九龙坡区|