.bash_profile does not exist
-
启动终端Terminal
-
进入当前用户的home目录(/Users/lanhongmei/)
输入cd ~
-
创建.bash_profile
输入touch .bash_profile
-
编辑.bash_profile文件
输入open -e .bash_profile
-
保存文件,关闭.bash_profile
-
更新刚配置的环境变量
输入source .bash_profile
-
验证配置是否成功
网友评论