Nginx management script in Windows

Source: Internet
Author: User
enable, restart, and disable nginx in Windows
 CLS @ echo off set nginx_path = E: Set nginx_dir = E: \ nginx-0.8.40 \ color 0a title nginx management  Program  power by ants (http://leleroyn.cnblogs.com) goto menu: menu CLS echo. echo. * *** nginx hypervisor power by ants (http://leleroyn.cnblogs.com) *** echo. ** echo. * 1 start nginx * echo. ** echo. * 2 disable nginx * echo. ** echo. * 3 restart nginx * echo. ** echo. * 4 return * echo. ** echo. * ************************ echo. echo. enter the serial number of the selected project: set/P id = if "% ID %" = "1" Goto cmd1 if "% ID %" = "2" Goto cmd2 if "% ID %" =" 3 "Goto cmd3 if" % ID % "=" 4 "Exit pause: cmd1 echo. echo. start nginx ...... if not exist nginx_dir1_nginx.exe echo when nginx_dir1_nginx.exe does not exist % nginx_path % Cd % nginx_dir % if exist does nginx_dir1_nginx.exe start when nginx_dir1_nginx.exe echo. OK pause goto menu: cmd2 echo. echo. disable nginx ...... taskkill/f/IM nginx.exe> NUL echo. OK pause goto menu: cmd3 echo. echo. disable nginx ...... taskkill/f/IM nginx.exe> NUL echo. OK goto cmd1 goto menu 
Related Article

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.