current position:Home>Startup and shutdown of nginx under windows (bat script)

Startup and shutdown of nginx under windows (bat script)

2022-09-23 07:47:20Leek Clock

Reference:
https://www.cnblogs.com/youshilife/p/15227208.html
https://www.cnblogs.com/anz130/p/6609933.html
https://jingyan.baidu.com/article/4b07be3c907e6f48b280f36d.html

:@echo off:if "%1" == "h"goto begin: mshta vbscript:createobject("wscript.shell").run("%~nx0 h"span>,0)(window.close)&&exit:begincd [email protected] shuts down nginxnginx.exe -s [email protected] force deletetaskkill /F /IM nginx.exe > [email protected] delay 1 secondTIMEOUT /T 1@REM reconfig filenginx.exe -s [email protected] restart nginxnginx.exe -s stopstart nginx

copyright notice
author[Leek Clock],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/266/202209230625502589.html

Random recommended