google gears无法安装的问题解决

wordpress 2.6集成了google gears,据说缓存一些文件,大大提升后台访问速度。但是今天跑去下载gears安装,却始终提示安装失败。

Connection errors. Please try again

在google的帮助系统中有相关提示:

Listed below are several possible causes for the connection error you’re receiving. Please determine which of these causes may be applicable to you and follow the instructions to resolve the problem.

…………….

Your computer’s Background Intelligent Transfer Service (BITS) isn’t starting properly. If this is the case, you may want to verify that BITS is correctly configured. To ensure that BITS is enabled, please follow these steps:

1. Click the “Start” button in your Windows taskbar and select “Settings” > “Control Panel” > “Administrative Tools” > “Services.”
2. Select “Background Intelligent Transfer Service” from the list.
3. Right-click “Background Intelligent Transfer Service” and choose “Properties” from the menu.
4. From the “General” tab verify that the “Startup” type is set to either “Automatic” or “Manual.” Make sure this setting is not “Disabled.”

按照这个帮助找下去,发现BITS服务果然是没有打开,手工启动也会报错。那么继续在google上爬了一阵,得到一个看似很强大的解决方案:

在dos命令行下执行:


c:>sc.exe config bits start= auto
c:>sc.exe sdset bits D:(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)
(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
c:>sc.exe start bits

如果启动成功,会得到下面的提示信息:

SERVICE_NAME: bits
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 2 START_PENDING
(NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x7d0
PID : 1808
FLAGS :

接着安装google gears,一切顺利。