Homebrew 安装使用笔记
Reference
- http://brew.sh/
- Chinese Install Doc
- Homebrew/services
- Instresting Taps
Install
brew install nginx
brew install mysql
# install PHP
brew tap Homebrew/php
brew install php55
... # other php55-*
# services manage scripts
brew tap Homebrew/services
brew services start nginx
brew services start mysql
brew services start php55
替换国内源
- 知乎问题
-
// 替换git镜像
cd “$(brew –repo)”
git remote set-url origin git://mirrors.ustc.edu.cn/brew.git// 替换bottles二进制源
echo ‘export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles’ » ~/.bash_profile
source ~/.bash_profile