.bash_profile 文件增加PATH=$PATH变量,冒号分割
sudo vi ~/.bash_profile
source ~/.bash_profile
export PATH=$PATH:$M2_HOME/bin:$HOME/bin:/Users/bestfei/Documents/fei/python/tomcat/fyctl/bin:/Users/bestfei/Documents/fei/python/tomcat/fytomcatctl/bin
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
#export JAVA_HOME=/Library/Java
#export PATH=$JAVA_HOME/bin:$PATH
export PATH=$PATH:/usr/bin/geckodriver
export M2_HOME=/Users/bestfei/Documents/tools/apache-maven-3.5.0
export PATH=$PATH:$M2_HOME/bin:$HOME/bin:/Users/bestfei/Documents/fei/python/tomcat/fyctl/bin:/Users/bestfei/Documents/fei/python/tomcat/fytomcatctl/bin