手动在.zshrc file中添加相应的路径 如添加mysql 的格式: export PATH=/usr/local/mysql/bin:$PATH 转载于:https://my.oschina.net/u/2439965/blog/891937