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等待安装。。。
mac 下安装 nginx
最新推荐文章于 2024-08-22 21:27:37 发布