2、进入当前用户目录 $ cd ~ 3、打开profile文件 $ open -e .bash_profile 就会弹出.bash_profile文件,(不要想使用ls 找到.bash_profile再去做编辑,你是找不到到,如上图中) 4、更新刚配置的环境变量 $ source .bash_profile 相关文章: 2022-02-04 2021-11-18 2022-12-23 2022-01-23 2022-02-08 2022-12-23 2021-07-02 2021-09-30