Mac配置初始化部署
记录mac系统初始化安装过程。安装xcode,brew,go环境,php环境。
1.xcode 安装
安装xcode,xcode是开发必要包
2.安装 brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew tap homebrew/dupes
brew tap homebrew/php
brew tap josegonzalez/homebrew-php
brew untap homebrew/php
3.安装 soft
brew install wget
brew install git
brew install svn
brew install minicom //串口连接使用
4.安装golang 1.5
4.1安装 Go 1.4
- 下载源码安装包:go1.4.2.src.tar和go1.5.src.tar.gz
- 解压 到 go1.4 和 go 1.5
进入到 go1.4/src/ 执行 ./all.bash
ln -s go1.5 go ln -s go1.4 go-bootstrap
配置环境变量
export GOROOT=/opt/environment/go export GOBIN=/opt/environment/go/bin export GOPATH=/opt/environment/work/ export GOROOT_BOOTSTRAP=/opt/environment/go-bootstrap export PATH=$PATH:$GOBIN
进入到go/src/执行./all.bash
5.安装PHP 配置apache
brew update
brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
# brew install php55 --with-fpm #Nginx
brew install php55 #Apache