macOS 下 txt 文件乱码解决
最好的办法是使用 iconv
命令转换一下文本文件的编码格式。
最好的办法是使用 iconv
命令转换一下文本文件的编码格式。
打开 钥匙串访问 这个应用
苹果系统macosx的spotligh搜索功能很便捷让我们很快可以搜出自己想要的文件,应用等。
# 将默认命令设为 bash
chsh -s /bin/bash
# 将默认shell更改回Zsh:
chsh -s /bin/zsh
# 查看可以选择的 shell 列表:
cat /etc/shells
迁移项目到新电脑上,同样的 Nginx 配置,结果在新电脑上发现了一个问题:
所有的资源文件(js/image/css等)报 403 Forbidden 错误。
因为配置文件一模一样,所以开始以为是 Nginx 版本问题,搜了一下网上没发现这个问题。
于是打开 Nginx 的错误日志,发现:
删除 macOS 下的user以后,清倒废纸篓,提示 “voicetrigger” 在使用中。
处理好后,再开启SIP服务。
今天突然发现应用报错:
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。