brew
/usr/bin/ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/
master/install)"
mysql
1. 官网下载mysql-5.7.16-osx10.11-x86_64.dmg
2. ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql
ps:建立软链接,将mysql命令置于系统全局
nginx
1. brew install nginx
2. sudo ln -s /usr/local/etc/nginx /etc/nginx
ps:建立软链接,修改命令行进入nginx配置目录方式
3. sudo nginx -c /etc/nginx/nginx.conf
ps:指定nginx配置文件