测试vps网络接口速度

一般说来VPS至少是百兆接入的,也有G口接入,但由于服务器位置不同,连接速度各异。
如何来测试VPS的接口带宽呢?客观的就是借助第三方网站speedtest.net来测试VPS连接到最近地理位置的测试服务器的速度,而不是去下载cachefly上的文件。speedtest.net上有上千个测试点遍布全球,完全可以找到离要测试VPS距离最近的测试点 继续阅读“测试vps网络接口速度”

解决update时key不可用的问题

debian/ubuntu在进行自动更新时候可能会遇到“There is no public key available for the following key IDs”的错误提示
可以通过以下命令解决:
apt-get install debian-keyring debian-archive-keyring
apt-key update

之后再运行
apt-get update && apt-get upgrade
即可!

apt-get update丢失key

一些主机商的源码包并非标准版本,在运行apt-get update时候会提示
W: There is no public key available for the following key IDs:
9D6D8F6BC857C906
W: There is no public key available for the following key IDs:
7638D0442B90D010

之类的错误
解决办法:
运行apt-get install debian-keyring debian-archive-keyring
apt-get update

即可。

source.list

一些VPS主机只提供精简版OS,这样子在apt-get一些程序时候会提示找不到等等错误
最好的解决办法就是更改/etc/apt下面的source.list文件
今天一台debian8 64bit mini版本的主机安装mariaDB时候折腾半天,总是提示“无法找到版本” 继续阅读“source.list”

letsencrypt

letsencrypt 目前提供免费的SSL证书,关于这项服务近一年来网上有很多介绍,

使用

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto --agree-dev-preview --server https://acme-v01.api.letsencrypt.org/directory certonly

继续阅读“letsencrypt”