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

 

以上。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM