云互联的网站名字,哪家网站建设专业,vi系统整套设计,企业官网建站流程在Windows下使用Nginx#xff0c;我们需要掌握一些基本的操作命令#xff0c;比如#xff1a;启动、停止Nginx服务#xff0c;重新载入Nginx等#xff0c;下面我就进行一些简单的介绍。1、启动#xff1a;C:serverginx-1.0.2start nginx或C:serverginx-1.0.2ngin…在Windows下使用Nginx我们需要掌握一些基本的操作命令比如启动、停止Nginx服务重新载入Nginx等下面我就进行一些简单的介绍。1、启动C:serverginx-1.0.2start nginx或C:serverginx-1.0.2nginx.exe注建议使用第一种第二种会使你的cmd窗口一直处于执行中不能进行其他命令操作。2、停止C:serverginx-1.0.2nginx.exe -s stop或C:serverginx-1.0.2nginx.exe -s quit注stop是快速停止nginx可能并不保存相关信息quit是完整有序的停止nginx并保存相关信息。3、重新载入NginxC:serverginx-1.0.2nginx.exe -s reload当配置信息修改需要重新载入这些配置时使用此命令。4、重新打开日志文件C:serverginx-1.0.2nginx.exe -s reopen5、查看Nginx版本C:serverginx-1.0.2nginx -v nginx: nginx version: nginx/1.0.2或C:serverginx-1.0.2nginx -V nginx: nginx version: nginx/1.0.2 nginx: TLS SNI support enabled nginx: configure arguments: --builddirobjs.msvc8 --crossbuildwin32 --with-debug --prefix --conf-pathconf/nginx.conf --pid-pathlogs/nginx.pid --http-log-pathlogs/access.log --error-log-pathlogs/error.log --sbin-pathnginx.exe --http-client-body-temp-pathtemp/client_body_temp --http-proxy-temp-pathtemp/proxy_temp --http-fastcgi-temp-pathtemp/fastcgi_temp --with-cc-opt-DFD_SETSIZE1024 --with-pcreobjs.msvc8/lib/pcre-7.9 --with-zlibobjs.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-opensslobjs.msvc8/lib/openssl-0.9.8r --with-openssl-optenable-tlsext --with-http_ssl_module --with-mail_ssl_module注v只是简单显示版本信息V不但显示版本信息还显示配置参数信息。6、测试或载入指定配置文件测试配置文件C:serverginx-1.0.2nginx.exe -t -c conf/default.conf nginx: the configuration file C:serverginx-1.0.2/conf/default.conf syntax isoknginx: configuration file C:serverginx-1.0.2/conf/default.conf test is successful载入指定配置文件C:serverginx-1.0.2start nginx.exe -c conf/default.conf本文介绍的这几个命令都是非常基础的很空间记住多尝试几次就可以了后面小编会分享更多运维干货感兴趣的朋友走一波关注哩~