Mac intel 安装IDEA激活时遇到问题 jetbrains.vmoptions.plist: Permission denied

激活时执行脚本, permission denied

shell 复制代码
➜  scripts ./install.sh        
./install.sh: line 31: /Users/dry/Library/LaunchAgents/jetbrains.vmoptions.plist: Permission denied

jetbrains.vmoptions.plist 这个文件没权限,打开看了一下 install.sh 这个脚本里写的,要访问这个文件,但是没有权限。

解决办法是,先给授权:

shell 复制代码
➜  scripts sudo chmod 777 /Users/dry/Library/LaunchAgents/jetbrains.vmoptions.plist 

哪个文件报无权限就给哪个文件授权,之后再执行脚本即可,最后成功如下:

shell 复制代码
➜  scripts ./install.sh                                                     
./install.sh: line 43: /Users/dry/.jetbrains.vmoptions.sh: Permission denied
➜  scripts sudo chmod 777 /Users/dry/.jetbrains.vmoptions.sh
➜  scripts ./install.sh                                     
done. the "kill Dock" command can fix the crash issue.

会提示 done. the "kill Dock" command can fix the crash issue.

相关推荐
小梁不秃捏2 小时前
深入浅出Java虚拟机(JVM)核心原理
java·开发语言·jvm
yngsqq5 小时前
c# —— StringBuilder 类
java·开发语言
星星点点洲6 小时前
【操作幂等和数据一致性】保障业务在MySQL和COS对象存储的一致
java·mysql
xiaolingting6 小时前
JVM层面的JAVA类和实例(Klass-OOP)
java·jvm·oop·klass·instanceklass·class对象
风口上的猪20156 小时前
thingboard告警信息格式美化
java·服务器·前端
追光少年33227 小时前
迭代器模式
java·迭代器模式
秋窗78 小时前
Mac下Python版本管理,适用于pyenv不起作用的情况
开发语言·python·macos
超爱吃士力架8 小时前
MySQL 中的回表是什么?
java·后端·面试
扣丁梦想家8 小时前
设计模式教程:装饰器模式(Decorator Pattern)
java·前端·装饰器模式
drebander8 小时前
Maven 构建中的安全性与合规性检查
java·maven