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.

相关推荐
勇往直前plus16 小时前
从文件到屏幕:Python/java 字符编码、解码、文本处理的底层逻辑解析
java·开发语言·python
Drifter_yh1 天前
【黑马点评】Redisson 分布式锁核心原理剖析
java·数据库·redis·分布式·spring·缓存
莫寒清1 天前
Spring MVC:@RequestParam 注解详解
java·spring·mvc
没有医保李先生1 天前
字节对齐的总结
java·开发语言
甲枫叶1 天前
【claude】Claude Code正式引入Git Worktree原生支持:Agent全面实现并行独立工作
java·人工智能·git·python·ai编程
六件套是我1 天前
无法访问org.springframeword.beans.factory.annotation.Value
java·开发语言·spring boot
LYS_06181 天前
C++学习(5)(函数 指针 引用)
java·c++·算法
forestsea1 天前
Spring Cloud Alibaba 2025.1.0.0 正式发布:拥抱 Spring Boot 4.0 与 Java 21+ 的新时代
java·spring boot·后端
IT枫斗者1 天前
IntelliJ IDEA 2025.3史诗级更新:统一发行版+Spring Boot 4支持,这更新太香了!
java·开发语言·前端·javascript·spring boot·后端·intellij-idea