MAC 打開.bash_profile
啟動(dòng)終端Terminal
-
進(jìn)入當(dāng)前用戶的home目錄
輸入cd ~
-
創(chuàng)建.bash_profile
輸入touch .bash_profile
-
編輯.bash_profile文件
輸入open -e .bash_profile
保存文件,關(guān)閉.bash_profile
-
更新剛配置的環(huán)境變量
輸入source .bash_profile
MAC 打開.bash_profile
啟動(dòng)終端Terminal
進(jìn)入當(dāng)前用戶的home目錄
輸入cd ~
創(chuàng)建.bash_profile
輸入touch .bash_profile
編輯.bash_profile文件
輸入open -e .bash_profile
保存文件,關(guān)閉.bash_profile
更新剛配置的環(huán)境變量
輸入source .bash_profile