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.

相关推荐
阿维的博客日记7 小时前
MultipartFile 是不是表示仅仅是一个分片?
java·后端·spring·multipartfile
程序员无隅7 小时前
Coding Agent 为什么压缩上下文后还能继续工作?上下文模块设计拆解
java·开发语言·数据库
Swift社区7 小时前
Mac与Windows终端常用指令对比整理(实用避坑分享)
macos
Python+997 小时前
Java 枚举类(Enum)详解:从基础到高级应用
java·开发语言·python
二炮手亮子7 小时前
浅记java线程池
java·开发语言
一路向北North7 小时前
Spring Security OAuth2.0(23):分布式系统授权-转发明文给微服务
java·spring·微服务
Java小白笔记9 小时前
Docker 安装配置完全指南:MacOS 、Windows、Linux环境下的安装、配置与验证
linux·macos·docker
爱吃牛肉的大老虎9 小时前
rust基础之环境搭建
java·开发语言·rust
tellmewhoisi10 小时前
多版本共用redis的token有效期校验(过期重新登录)
java·redis·缓存
疯狂打码的少年10 小时前
【软件工程】结构化设计:模块独立性与耦合内聚
java·开发语言·笔记·软件工程