mac 下安装 nginx

1.安装brewhome(如果系统没有的话)打开命令行,输入以下命令$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"然后输入密码,我就是输入电脑密码。他自己安装DongtekiMacBook-Air:~ Dong$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"==> This script will install:/usr/local/bin/brew/usr/local/Library/.../usr/local/share/man/man1/brew.1==> The following directories will be made group writable:/usr/local/.==> The following directories will have their group set to admin:/usr/local/.Press ENTER to continue or any other key to abort==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/.Password:Sorry, try again.Password:==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/.==> Downloading and Installing Homebrew...remote: Counting objects: 122077, done.remote: Compressing objects: 100% (59644/59644), done.remote: Total 122077 (delta 85582), reused 95298 (delta 61463)Receiving objects: 100% (122077/122077), 19.32 MiB | 134 KiB/s, done.Resolving deltas: 100% (85582/85582), done.From https://github.com/mxcl/homebrew * [new branch] master -> origin/masterHEAD is now at 4b51e11 Improve signal-to-noise ratio of `brew list --unbrewed`==> Installation successful!You should run `brew doctor' *before* you install anything.Now type: brew help输入命令,检测(可以没有这步吧)$ brew doctorDongtekiMacBook-Air:~ Dong$ brew doctorWarning: Your Xcode (4.6.2) is outdatedPlease install Xcode 4.6.3.2. 安装nginx命令行继续输入:$ brew search nginxnginx$ brew install nginx等待安装。。。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值