nginx 安装

一. 安装

  使用 brew 安装: brew install nginx

 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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值