1. 啟動終端Terminal
~/.bash_profile
No such file or directory
2. 進入當前用戶的home目錄
????輸入cd ~
3. 創(chuàng)建.bash_profile
????輸入touch .bash_profile
4. 編輯.bash_profile文件
????輸入open -e .bash_profile
5. 保存文件,關(guān)閉.bash_profile
6. 更新剛配置的環(huán)境變量
????輸入source .bash_profile