一、Windows系统下重启nginx
1、杀掉nginx进程
tskill nginx
echo 已终止所有ginx进程
2、启动nginx
cd f:\nginx-1.0.5
nginx.exe -t
nginx.exe -v
start nginx.exe
echo nginx已启动
二、Linux系统下重启nginx
[[email protected]]#cd /web/webserver/nginx
[[email protected] nginx]# sbin/nginx -t
nginx: ok
nginx: successfull
[[email protected] nginx]# sbin/nginx -s reload
时间: 2024-11-08 23:33:32