普通视图

发现新文章,点击刷新页面。
昨天以前无主题博客

解决WordPress更新429 Too Many Requests

作者 小武
2020年3月19日 08:26

发现问题

在大陆服务器上的WordPress更新程序和插件会经常提示429 Too Many Requests,这个已经持续了很长一段时间了。有人怀疑是Wordpress封锁了大陆ip,从Wordpress论坛(https://wordpress.org/support/topic/is-wordpress-org-restricting-visits-from-china-region/ )的回复看应该是由于大陆访问过多,触发了Wordpress nginx服务器的Rate Limiting机制;从现象来看也是如此,因为不是每次都会出现429错误,在小几率下还是可以更新的。

解决方法

期间也搜索了很多文章,大概解决办法有如下几个:

1.通过ftp(sftp)上传

当wp后台提示程序或插件提示更新是,可以手动下载最新版本程序或插件通过ftp(sftp)的方式上传到服务器,覆盖原来旧版本文件;但这种简单粗暴的方式可能会导致某些插件报错,导致不能正常工作(我使用这种方法更新wordperss-seo插件是出现过报错的情况)。

2.修改更新地址

@我爱水煮鱼 在博客中提供了一段代码,通过修改更新包下载地址的方法,可以暂时解决Wordpress程序更新;但是插件和主题的更新就不能很好的解决。

3.使用wp-china-yes插件(目前我使用的方法)

最近博主孙锡源在其博客中发布了一个新的解决方案使用WP-China-Yes将WP站点与官方服务的通信切换到大陆节点
。以下内容来自他博客的引用:

近期又因为被攻击的原因,WordPress的CDN提供商屏蔽了中国大陆的流量,导致大陆用户访问插件主题商城等服务时报429错误。
为解决上述问题,我在大陆境内架设了基于反向代理的缓存加速节点,用以加快WordPress官方服务在中国大陆的访问速度,并规避429报错问题。
此加速节点是直接为你的站点与WordPress总部服务器的一切通信做加速,加速范围包括但不限于:插件、主题商城的资源下载、作品图片、作者头像、主题预览等……
为使更多的使用WordPress的同学能够用上大陆加速节点,我开发了WP-China-Yes插件,以求帮助大家方便简洁的替换官方服务链接为大陆节点。

稳定版下载:https://github.com/sunxiyuan/wp-china-yes/releases/
开源代码 https://github.com/sunxiyuan/wp-china-yes

4.使用kill 429插件

kill 429是闪电博在早期发布的一款插件,从原理上看应该是使用正向代理方式。以下来自他博客的引用:

Kill 429是一款解决中国境内服务器WordPress版本更新,主题及插件更新报429错误的插件,插件通过优化中国境内服务器访问WordPress数据服务器的网络,解决429报错问题,快速安装WordPress版本更新及其他主题、插件更新。

The post 解决WordPress更新429 Too Many Requests appeared first on 无主题博客.

MacOS Catalina Alfred出现相同的apps

作者 小武
2019年10月8日 18:09

今天更新完MacOS Catalina后,alfred运行应用程序时,同一个app出现在不同两个目录“/System/Volumes/Data/Applications” 和 “/Applications”

解决方法

在 alfred中输入reload 即可。

https://superuser.com/questions/1454743/macos-catalina-why-the-apps-in-system-volumes-data-applications-and-appli

MacOS Catalina - Why the apps in “/System/Volumes/Data/Applications” and “/Applications” are the same?

Q:
When I use MacOS Catalina (Public Beta) with Alfred 4, I find that all the Applications installed via Mac App Store or brew cask are duplicated in the candidate list.

Any application in the "/System/Volumes/Data/Applications" will be mirrored" in "/Applications".

Does it work as design?

A:
Type reload into Alfred. This will refresh the app cache for any apps that may no longer exist in the old location. Reference: https://www.alfredforum.com/topic/13121-duplicate-apps-in-results-1015-and-v4/

The post MacOS Catalina Alfred出现相同的apps appeared first on 无主题博客.

❌
❌