window中nginx的启动和关闭方法

1、启动:

C:\server\nginx-1.0.2>start nginx

 

2、停止:

C:\server\nginx-1.0.2>nginx.exe -s stop

 

3、重新载入Nginx:

C:\server\nginx-1.0.2>nginx.exe -s reload

 

 

 

restart.bat
@echo off
tskill nginx
nginx.exe -t
nginx.exe -v
start nginx.exe
echo nginx已启动。
pause

start.bat
@echo off
nginx.exe -t
nginx.exe -v
start nginx.exe
echo nginx已启动。

shutdown.bat
@echo off
tskill nginx
echo 已终止所有ginx进程

 

http://www.android100.org/html/201407/30/48183.html

你可能感兴趣的:(window中nginx的启动和关闭方法)