Win Nginx + PHP bat start/Stop script

Source: Internet
Author: User
Tags stop script
  1. Startup scripts

@echo off
Inactive under REM Windows
REM Set php_fcgi_children=5

REM maximum number of requests processed per process, or set to Windows environment variable
Set php_fcgi_max_requests=1000

echo Starting PHP FastCGI ...
CD/D D:/program files/php7/
REM php-cgi.exe-b 127.0.0.1:9000-c php.ini

Echo Starting Nginx ...
CD/D D:/program files/nginx/
Start Nginx.exe

2. Stop the script

@echo off
echo Stopping Nginx ...
taskkill/f/im nginx.exe > nul
echo Stopping PHP FastCGI ...
taskkill/f/im php-cgi.exe > nul
Exit

Win Nginx + PHP bat start/Stop script

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.