1.创建并以 TextEdit 的方式打开 ~/.bash_profile 文件 touch ~/.bash_profile; open -t ~/.bash_profile 2.新增环境变量 export PATH="$HOME/.rbenv/bin:$PATH" 3.让以上所做的配置生效 source ~/.bash_profile 相关文章: 2021-06-22 2022-12-23 2021-08-14 2021-08-17 2022-12-23 2022-12-23 2022-01-09 2022-02-09