MAC配置环境变量 打开电脑终端命令行窗口,按照以下命令依次执行: touch ~/.bash_profilevim ~/.bash_profilei$PATH=…(添加具体需要配置的路径)esc(按键):wqsource ~/.bash_profile