分类 macOS 下的文章

今天突然发现应用报错:

MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.

- 阅读剩余部分 -

这个问题是因为 AccessClient 长期不更新导致的。

闪退的原因:苹果在 macOS 12.3 中将系统中的 python2 运行库移除了,导致 AccessClient 执行时找不到 python。

解决方案:

  1. 打开应用程序目录,在 AccessClient 图标上右击,选中显示包内容,进入到 Contents/Resources/Scripts 目录下找到 main.scpt 使用脚本编辑器打开(双击即可自动打开,二进制文件不支持文本编辑器),将其中里的 python 改为 python3 ,保存即可。
  2. 在 Terminal 终端里执行 xcode-select –install 安装 xcode 插件,安装过程 20 分钟左右。
  3. 堡垒机打开 Terminal 弹框报错,“tmpXXXXXXXXX.command”无法打开,因为不允许“(null)”在“终端”中打开文稿。此时需要修改 ~/.local/accessclient.conf 配置文件,增加 Terminal 应用程序启动路径 “/System/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal”。
  4. 打开 Termial,无法ssh登录,需要在 ~/.ssh 目录下创建/编辑 config 文件,增加一行 HostkeyAlgorithms +ssh-dss,ssh-rsa 即可。

由于需要测试一个很老的软件,需要在 macOS 上的 /home 目录下创建一个目录,结果报错 Operation not supported。

2024-02-29T10:36:17.png

其实这是 macOS 的安全模块限制的。

解决方案就是关闭这个限制,方法如下:

编辑 /etc/auto_master 文件,将下面这行注释掉:

2024-02-29T10:36:34.png

然后执行 sudo automount 命令重载一下配置即可。


2024-02-29T10:36:51.png