Nginx管理,Win平台
Win开发机上用Nginx,重启和关闭太麻烦了,之前找了个脚本,自己稍微修改了一下。
@echo off rem 环境配置 SET NGINX_PATH=D: SET NGINX_DIR=D:\work\nginx-1.11.3 ECHO ******************************************************* ECHO ********** Nginx 管理程序 ********** ECHO ********** Update by Eric.Wen 2016-08-10 ********** ECHO ******************************************************* ECHO. ECHO ENV: ECHO ======================================================= ECHO. ECHO Nginx 目录:%NGINX_DIR% ECHO. :MENU ECHO. ECHO Nginx进程列表: ECHO ======================================================= tasklist|findstr /i "nginx.exe" ECHO. ECHO 选项: ECHO ======================================================= ECHO. [1] 启动Nginx ECHO. [2] 关闭Nginx ECHO. [3] 重启Nginx ECHO. [4] 退 出 ECHO. ECHO.请输入选择项目的序号: SET/p ID= IF "%ID%"=="1" GOTO start IF "%ID%"=="2" GOTO stop IF "%ID%"=="3" GOTO restart IF "%ID%"=="4" EXIT PAUSE :start CALL :nginxStart GOTO MENU :stop CALL :nginxStop GOTO MENU :restart CALL :nginxStop CALL :nginxStart GOTO MENU rem 执行启动和关闭 :nginxStart %NGINX_PATH% cd %NGINX_DIR% start "" nginx.exe goto MENU :nginxStop taskkill /F /IM nginx.exe > nul goto MENU
相关推荐
laisean 2020-11-11
Julyth 2020-10-16
laisean 2020-09-27
flycappuccino 2020-09-27
liguojia 2020-09-27
87201442 2020-10-15
MXstudying 2020-09-05
WasteLand 2020-09-15
<?php. if (!empty($_POST)) {. $data1 = $_POST["data1"];$data2 = $_POST["data2"];$fuhao = $_POST["fuh
mathchao 2020-09-15
tvk 2020-07-30
Zaratustra 2020-07-29
zhaowj00 2020-07-26
Zaratustra 2020-06-26
ldcwang 2020-06-25
拿什么来拯救自己 2020-06-21
IsanaYashiro 2020-06-16
赵家小少爷 2020-06-14
大牛牛 2020-06-14