美文网首页
mac pro 环境变量的配置 (当不存在 .bash_prof

mac pro 环境变量的配置 (当不存在 .bash_prof

作者: 小边_leo | 来源:发表于2020-11-18 10:53 被阅读0次
.bash_profile does not exist
  1. 启动终端Terminal

  2. 进入当前用户的home目录(/Users/lanhongmei/)

    输入cd ~

  3. 创建.bash_profile

    输入touch .bash_profile

  4. 编辑.bash_profile文件

    输入open -e .bash_profile

  5. 保存文件,关闭.bash_profile

  6. 更新刚配置的环境变量

    输入source .bash_profile

  7. 验证配置是否成功

相关文章

网友评论

      本文标题:mac pro 环境变量的配置 (当不存在 .bash_prof

      本文链接:https://www.haomeiwen.com/subject/rnoqiktx.html