Nginx 403 Forbidden 的一个解决思路
迁移项目到新电脑上,同样的 Nginx 配置,结果在新电脑上发现了一个问题:
所有的资源文件(js/image/css等)报 403 Forbidden 错误。
因为配置文件一模一样,所以开始以为是 Nginx 版本问题,搜了一下网上没发现这个问题。
于是打开 Nginx 的错误日志,发现:
迁移项目到新电脑上,同样的 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。