windows中启动和终止nginx的两个批处理

文件: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

以上。

猜你喜欢

转载自www.cnblogs.com/vanwoos/p/9751796.html