执行一条cmd命令的window.bat 批处理代码:










执行一条cmd命令的window.bat 批处理代码:

@echo off

echo NodeJS SUPERVISOR...Server.js
::下面是批处理代码

supervisor d:\WWWBOX\LEAPNODE\server.js

::暂停 3 秒时间
ping -n 3 127.0.0.1 > nul

::暂停
::pause
Exit






// 执行启动Nginx-php-mysql的 window 批处理代码

@echo off

echo Starting PHP FastCGI...

D:\WNPMServer\RunHiddenConsole\RunHiddenConsole.exe D:\WNPMServer\php5\php-cgi.exe -b 127.0.0.1:9000 -c D:\WNPMServer\php5\php.ini

echo Starting Nginx...

D:\WNPMServer\RunHiddenConsole\RunHiddenConsole.exe D:\WNPMServer\nginx\nginx.exe -p D:\WNPMServer\nginx


ping -n 3 127.0.0.1 > nul

Exit

 

关闭Nginx-php服务的批处理代码

@echo off

echo Stop Nginx...
taskkill /F /IM nginx.exe > nul

echo Stop PHP FastCGI...
taskkill /F /IM php-cgi.exe > nul


ping -n 3 127.0.0.1 > nul

exit

 









执行一条cmd命令的window.bat 批处理代码:,布布扣,bubuko.com

执行一条cmd命令的window.bat 批处理代码:

上一篇:如何在windows下安装GIT


下一篇:Nginx学习之二-配置项解析及编程实现