MAC环境下Nginx配置

时间:2021-07-24 00:12:16   收藏:0   阅读:17
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/pcre-8.45.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/nginx-1.21.1.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Installing dependencies for nginx: pcre
==> Installing nginx dependency: pcre
==> Pouring pcre-8.45.catalina.bottle.tar.gz
??  /usr/local/Cellar/pcre/8.45: 204 files, 5.8MB
==> Installing nginx
==> Pouring nginx-1.21.1.catalina.bottle.tar.gz
==> Caveats
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 have launchd start nginx now and restart at login:
  brew services start nginx
Or, if you dont want/need a background service you can just run:
  nginx
==> Summary
??  /usr/local/Cellar/nginx/1.21.1: 25 files, 2.2MB
==> Caveats
==> 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 have launchd start nginx now and restart at login:
  brew services start nginx
Or, if you dont want/need a background service you can just run:
  nginx

 

原文:https://www.cnblogs.com/kuliuheng/p/15050270.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!