JUST DO IT ~

我只想当个程序员

osx nginx 配置位置 brew 安装


GMac:~ gddg$ brew install nginx
==> Installing nginx dependency: pcre
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pcre-8.36.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pcre-8.36.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/pcre/8.36: 146 files, 5.9M
==> Installing nginx
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/nginx-1.6.2.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring nginx-1.6.2.yosemite.bottle.1.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.

To have launchd start nginx at login:
    ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents
Then to load nginx now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
Or, if you don't want/need launchctl, you can just run:
    nginx
==> Summary
🍺  /usr/local/Cellar/nginx/1.6.2: 7 files, 920K


posted on 2015-03-22 22:09 小高 阅读(215) 评论(0)  编辑  收藏 所属分类: Linux工作环境搭建Mac OSX


只有注册用户登录后才能发表评论。


网站导航:
 

导航

<2015年3月>
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

统计

常用链接

留言簿(3)

随笔分类(352)

收藏夹(19)

关注的blog

手册

搜索

积分与排名

最新评论

阅读排行榜

评论排行榜