N1 docker ubuntu 容器解决 Some index files failed to download. They have been ignored, or old ones used instead 问题

n1 的 docker,一个 ubuntu 容器在 root 用户下执行 apt-get update 总是遇到 Some index files failed to download. They have been ignored, or old ones used instead 问题,换了好几个国内源都没有解决。 比如下面这篇提到的多个源 https://www.cnblogs.com/gentlemanwuyu/p/11621636.html 但这是为 x86 架构的机器准备的源地址... 阅读全文

leanote 数据库(MongoDB)备份以及恢复教程

查看 leanote 数据库配置 查看 leanote 安装配置文件 (一般是 /data/leanote/conf/app.conf),找到数据库的用户名和密码(以及端口、数据库名字等信息) # mongdb db.host=127.0.0.1 db.port=27017 db.dbname=leanote # required db.username= # if not exists, please leave it blank db.password= # if not exists, p... 阅读全文

使用 besttrace 查看 VPS 去程和回程的路由线路

windows 下 traceroute 工具一般用下面这两个 winmtr 官网: http://winmtr.net/download-winmtr/ 优点: 图形界面,速度快 缺点: 没有地图显示,不够直观 备注: 比 Windows dos 自带的 tracert 工具更加好用 besttrace 官网(下载地址): https://www.ipip.net/product/client.html 优点: 可以识别每一跳 ip 的地理位置,自带地图,显示非常直观。可以选择 goo... 阅读全文

url 中 # (井号, hash)的作用

url 中 # 的作用 # (hash) 代表网页文档中的一个位置,#右边的字符就是该位置的标识符。 # 是用来指导浏览器的动作的,对服务端是无感的。浏览器先请求 url 得到 response 之后再定位到 # 的位置。 为网页位置指定标识符,一般有两种方法 使用锚点 <a name="xxx">position that xxx points</a> 使用 id 属性 <div id="xxx">position that xxx points&l... 阅读全文

让 iPhone iPad 连接的 wifi 能够使用 socks 代理

可以看到 iPhone 连接到 wifi 后修改 wifi 参数,只有设置 HTTP 代理 的选项,没有设置 SOCKS 代理 的功能。本文给出一种可以设置 SOCKS 代理的方法—— 编写PAC文件并托管于静态文件服务器,实现通过一个 url 自动配置代理。 A proxy auto-config (PAC) file defines how web browsers and other user agents can automatically choose the appropriat... 阅读全文