1、创建 .bash_profile cd ~ touch .bash_profile 2、查看 、编辑 .bash_profile 文件 open -e .bash_profile 3、更新刚配置的环境变量 source .bash_profile 4、查看环境变量 echo $PATH
cd ~
touch .bash_profile
open -e .bash_profile
source .bash_profile
echo $PATH