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.

相关推荐
疯狂打码的少年8 分钟前
【Day13 Java转Python】装饰器、生成器与lambda——Python的函数式“三件套”
java·开发语言·python
大气层煮月亮9 分钟前
ERP-Agent 记忆系统优化方案
java·大数据·elasticsearch
java1234_小锋18 分钟前
Java高频面试题:Spring框架中的单例bean是线程安全的吗?
java·spring·面试
Tingjct30 分钟前
C++ 多态
java·开发语言·c++
Devin~Y35 分钟前
大厂Java面试实战:Spring Boot/WebFlux、Redis+Kafka、K8s可观测性与Spring AI RAG/Agent三轮连环问
java·spring boot·redis·kafka·kubernetes·resilience4j·spring webflux
老约家的可汗1 小时前
搜索二叉树的概念及使用
java·开发语言
被摘下的星星1 小时前
Maven
java·maven
悟空码字1 小时前
别再重复造轮子了!SpringBoot对接第三方系统模板,拿来即用
java·spring boot·后端
yaaakaaang1 小时前
十七、迭代器模式
java·迭代器模式
我爱cope1 小时前
【从0开始学设计模式-8| 桥接模式】
java·设计模式·桥接模式