/.bash_profile: Permission denie

2018-12-19  本文已影响97人  May_Dobin

打开Mac终端出现

/.bash_profile: Permission denied

解决方法:
网上解决方法是:“找到 .bash_profile同一目录下的.profile文件,打开文件并注释/Users/xxx/.bash_profile,保存即可”

查看.profile 后并没有找到/Users/xxx/.bash_profile这个命令,

后来vim ~/.bash_profile 发现里面代码有问题,删除、保存后,source ~/.bash_profile ,运行成功。

上一篇 下一篇

猜你喜欢

热点阅读