赶上公司硬件更新,需要重新配置下新机。这里做下记录
先安装XCODE(自带终端命令)
安装oh my zsh(扩展命令)
curl -L http://install.ohmyz.sh | sh
安装brew(具体参见brew.sh)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装git
brew install git
密钥在~/.ssh/id_rsa & id_rsa.pub
安装java jdk 7
安装webstorm 8.0.1 (由于此版本IDE认java se 6,需要改下配置文件)
cd Applications
vim ./WebStorm.app/Contents/Info.plist
将<string>1.6*</string>改为1.7*
安装node.js(官网下载Pkg)
sudo npm update -g
sudo npm install -g express-generator
sudo npm install gulp -g
brew install mongodb
安装nginx
brew install nginx
配置文件在/usr/local/etc/nginx/nginx.conf
安装python运行环境
sudo easy_install pip
sudo pip install virtualenv
安装maven
brew install maven
配置文件在~/.m2/settings.xml下
JAVA_HOME
vim ~/.zshrc
export /Library/Java/JavaVirtualMachines/jdk1.7.0_76.jdk/Contents/Home/
.source ~/.zshrc