---
title: "Xmarks不能同步或连接被重置解决方案（修改hosts）"
date: 2010-01-02T11:19:29.000Z
tags: ["hosts", "Xmarks"]
categories: ["技术"]
canonical: https://www.zhaojian.net/xmarks-cannot-sync-hosts/
author: 赵健
---

此操作只用来解决firefox插件Xmarks不能同步或连接被重置的问题，通过以下方法可以解决无法访问Xmarks问题。

新建立一个文本文档，然后输入如下内容：


```
attrib -s -r C:\WINDOWS\system32\drivers\etc\hosts
call notepad.exe C:\WINDOWS\system32\drivers\etc\hosts
attrib +r +s C:\WINDOWS\system32\drivers\etc\hosts
exit
```


然后将该文件改名为：a.bat

运行创建的a.bat文件，在弹出的记事本编辑器中，在最下边新建几行内容输入：


```
#xmarks
64.147.188.86   www.xmarks.com
64.147.188.92   api.xmarks.com
64.147.188.89   login.xmarks.com
64.147.188.87   sync.xmarks.com
64.147.188.86   static.xmarks.com
64.147.188.86   download.xmarks.com
64.147.188.86   my.xmarks.com
```

保存后，打开xmarks设置菜单，选择“高级”，加密那个下拉框里面选择“全部加密”，就可以同步了。