Homebrew可以看成是MAC平台开发者的appstore,类似于centos下的yum。安装方法:

ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

安装过程提示:

Press RETURN to continue or any other key to abort

直接按回车,输入机器密码即可。

 

brew install

brew search

brew uninstall

brew upgrade

brew services start

brew services stop

brew services restart