启动nginx服务

sudo brew services start nginx

利用http://localhost:8080进行访问, 如果出现如下界面,说明启动成功.

 

查看nginx版本

nginx -v 

关闭nginx服务

sudo brew services stop nginx 

另外几个比较方便的指令

重新加载nginx

nginx -s reload 

停止nginx

nginx -s stop

相关文章:

  • 2021-12-27
  • 2021-09-02
  • 2021-08-07
  • 2021-12-26
  • 2021-06-18
  • 2021-05-28
  • 2021-10-04
猜你喜欢
  • 2021-10-07
  • 2021-11-20
  • 2021-06-11
  • 2021-11-10
  • 2021-12-19
  • 2021-06-09
  • 2021-09-21
相关资源
相似解决方案