前端代码

This commit is contained in:
liumengyu
2026-08-21 18:42:51 +08:00
parent 054947482f
commit 04e06a9c9a
762 changed files with 62992 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
@echo off
setlocal
set NGINX_HOME=D:\nginx
set CONF=%~dp0nginx.conf
cd /d "%NGINX_HOME%"
nginx -p "%NGINX_HOME%/" -c "%CONF%" -t
if errorlevel 1 (
echo Nginx config test failed.
pause
exit /b 1
)
tasklist /FI "IMAGENAME eq nginx.exe" | find /I "nginx.exe" >nul
if errorlevel 1 (
start "" "%NGINX_HOME%\nginx.exe" -p "%NGINX_HOME%/" -c "%CONF%"
echo Nginx started on port 80.
) else (
"%NGINX_HOME%\nginx.exe" -p "%NGINX_HOME%/" -c "%CONF%" -s reload
echo Nginx reloaded.
)
endlocal