Nginx common command

105 阅读1分钟

1. Set up service

brew services start nginx  or  nginx

2. Stop service

nginx -s quit

3. Restart service

nginx -s reload

4. Kill nginx

nginx -s stop