首页 » 后端 » Nginx » 正文

brew nginx 的使用

发布者:站点默认
2023/04/17 浏览数(248) 分类:Nginx brew nginx 的使用已关闭评论

安装

brew install nginx

配置文件:

/usr/local/etc/nginx/nginx.conf

用法:

brew services info nginx
brew services restart nginx
brew services start nginx
brew services stop nginx

安装日志:

Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.

nginx will load all files in /usr/local/etc/nginx/servers/.

To restart nginx after an upgrade:
  brew services restart nginx
Or, if you don't want/need a background service you can just run:
  /usr/local/opt/nginx/bin/nginx -g daemon off;
点击返回顶部
  1. 留言
  2. 联系方式