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.

相关推荐
鬼火儿36 分钟前
Golang笔记——Interface类型
java·后端
蓝-萧1 小时前
Redis——Windows安装
java·后端
祈祷苍天赐我java之术1 小时前
如何在Java中整合Redis?
java·开发语言·redis
极小狐1 小时前
极狐GitLab 18.5 正式发布,更新 Maven 虚拟仓库 UI(Beta)、全新个人主页、实例级合规与安全策略管理 以及 DAST 认证脚本 等
java·gitlab·maven
王元_SmallA2 小时前
【玩转全栈】----Django基本配置和介绍
java·后端
LiuYaoheng2 小时前
【Android】Drawable 基础
android·java
AlianNiew2 小时前
从源码到实战:用 Java 打造“限时+防重放”的文件安全预览链接
java·后端
null or notnull3 小时前
java服务器空间不够时:将多个服务器的文件存放至同一个服务器上(使用映射器的办法)
java·运维·服务器·java-ee
代码栈上的思考3 小时前
JVM中内存管理的策略
java·jvm
YoungP3 小时前
【Effective Java 条目二】-- 当构造器参数较多时考虑使用生成器
java