文件:start_nginx.bat
内容:
set nginx=D:\nginx-1.9.5\
set php=D:\php\
start /MIN %nginx%nginx.exe
start /MIN %php%php-cgi.exe -b 127.0.0.1:9000 -c %php%php.ini
文件:stop_nginx.bat
内容:
set nginx=D:\nginx-1.9.5\
%nginx%nginx.exe -s quit
taskkill /f /im nginx.exe
taskkill /f /im php-cgi.exe
以上。
原文地址:https://www.cnblogs.com/vanwoos/p/9751796.html
时间: 2024-10-08 20:50:22