windows 启动nginx的脚本

启动脚本

rem tasklist /fi "imagename eq nginx.exe"
taskkill /F /fi "imagename eq nginx.exe"
start nginx

保存为 start-nginx.bat,双击即可执行。

C:\Users\123>tasklist /fi "imagename eq nginx.exe"
Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
nginx.exe                    20764 Console                    2      7,092 K
nginx.exe                    20676 Console                    2      7,448 K

你可能感兴趣的:(nginx,windows)