Windows Nginx startup shutdown

Source: Internet
Author: User

Windows Nginx Start, stop and other commands under Windows to use Nginx, we need to master some basic operational commands, such as: Start, stop Nginx service, re-loaded Nginx, and so on, I will do some simple introduction. 1, start: C:\server\nginx-1.0.2>start Nginx or C:\server\nginx-1.0.2>Nginx.exe Note: The first is recommended, and the second will keep your cmd window in execution and cannot be manipulated by other commands. 2, stop: C:\server\nginx-1.0.2>nginx.exe-s stop or C:\server\nginx-1.0.2>nginx.exe-S quit note: Stop is a quick stop nginx, may not save the relevant information; Quit is a complete and orderly stop nginx, and save the relevant information. 3, re-loading Nginx:c:\server\nginx-1.0.2>nginx.exe-s Reload Use this command when configuration information is modified and needs to be re-loaded in these configurations. 4, reopen log file: C:\server\nginx-1.0.2>nginx.exe-s Reopen5, view Nginx version: C:\server\nginx-1.0.2>nginx-Vnginx:nginx Version:nginx/1.0.2or C:\server\nginx-1.0.2>nginx-Vnginx:nginx Version:nginx/1.0.2nginx: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=1024x768--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 Note: v simply displays the version information, v not only displays the version information, but also displays the configuration parameter information. 6, test, or load the specified configuration file: Test profile 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 issuccessful loading the specified configuration file C:\server\nginx-1.0.2>start nginx.exe-c conf/default. conf

Windows Nginx startup shutdown

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.