nginx 安裝

一. 安裝nginx

  使用 brew 安裝: brew install nginxide

 1 ==> Installing dependencies for nginx: pcre
 2 ==> Installing nginx dependency: pcre
 3 ==> Downloading https://homebrew.bintray.com/bottles/pcre-8.41.high_sierra.bottl
 4 ######################################################################## 100.0%
 5 ==> Pouring pcre-8.41.high_sierra.bottle.tar.gz
 6 🍺  /usr/local/Cellar/pcre/8.41: 204 files, 5.3MB
 7 ==> Installing nginx
 8 ==> Downloading https://homebrew.bintray.com/bottles/nginx-1.12.2_1.high_sierra.
 9 ######################################################################## 100.0%
10 ==> Pouring nginx-1.12.2_1.high_sierra.bottle.tar.gz
11 ==> Caveats
12 Docroot is: /usr/local/var/www
13 
14 The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
15 nginx can run without sudo.
16 
17 nginx will load all files in /usr/local/etc/nginx/servers/.
18 
19 To have launchd start nginx now and restart at login:
20   brew services start nginx
21 Or, if you don't want/need a background service you can just run:
22   nginx
23 ==> Summary
24 🍺  /usr/local/Cellar/nginx/1.12.2_1: 23 files, 1MB
View Code
相關文章
相關標籤/搜索