nginx命令
Opened this issue · 0 comments
junhey commented
nginx启动
brew services start nginx
或者
sudo nginx
默认安装在/usr/local/
sudo nginx #启动
sudo nginx -t #测试配置文件是否有错
sudo nginx -s reload #重启nginx
restart_nginx.bat
@echo off
echo Stopping nginx...
taskkill /F /IM nginx.exe > nul
echo Starting nginx...
RunHiddenConsole nginx.exe
echo nginx ok
start_nginx.bat
@echo off
echo Starting nginx...
RunHiddenConsole nginx.exe
echo nginx ok
stop_nginx.bat
@echo off
echo Stopping nginx...
taskkill /F /IM nginx.exe > nul
exit