nginx,
nginx,
- nginx 启动/测试/stop
/usr/sbin/nginx -c /etc/nginx/conf/nginx.conf
/usr/sbin/nginx -t -c /etc/nginx/conf/nginx.conf
/usr/sbin/nginx -s -c /etc/nginx/conf/nginx.conf
/usr/sbin/nginx -s reload
停止: kill -TERM 2132 或kill -TNT 2132
重启: kill -HUP
- Bat
@echo off
start .\nginx -s stop
@echo ok
pause
@echo off
start nginx -c .\conf\nginx.conf
@echo ok
pause
@echo off
start .\nginx -s reload
@echo ok
pause
评论暂时关闭