如果家里的宽带有给你分配独立IP的话, 理论上是可以在家里架设自己的服务器然后世界各地也可以访问到.但是实际上还是没有很多人这样做, 因为家里宽带的上行,也就是上传Upload速率并不大, 服务器的上传就是别人访问下载的速度(理论最大).
所以我很好奇 我用的 QuickHostUK VPS的上传和下载速度是多少.能否满足大规模的流量.
可以通过在 Linux 命令行 (SSH) 安装 speed-test 的 一个 Python 脚本来测试:
1 2 3 4 | $ wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py $ chmod a+rx speedtest_cli.py $ sudo mv speedtest_cli.py /usr/local/bin/speedtest-cli $ sudo chown root:root /usr/local/bin/speedtest-cli |
$ wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py $ chmod a+rx speedtest_cli.py $ sudo mv speedtest_cli.py /usr/local/bin/speedtest-cli $ sudo chown root:root /usr/local/bin/speedtest-cli
然后可以用 命令 speedtest-cli 来进行测试:
加上参数 –share 则可以为我们生成一个PNG图片用于分享.
这个VPS的最大上传速率是 80多 Mb/s 也就是我们访问者请求时候服务器的下载速度.我家里的宽带一般上行就 2 M 左右, 还是有很大差别的.
1 2 3 4 5 6 7 8 9 10 11 12 | root@uploadbeta:~# speedtest-cli --share Retrieving speedtest.net configuration.. Retrieving speedtest.net server list.. Testing from UK Dedicated Servers Limited (78.157.200.133).. Selecting best server based on latency.. Hosted by Excell Group PLC (London) [2.52 km]: 10.466 ms Testing download speed.................... Download: 67.92 Mbits/s Testing upload speed......................... Upload: 84.22 Mbits/s Share results: http://www.speedtest.net/result/3858774271.png root@uploadbeta:~# |
root@uploadbeta:~# speedtest-cli --share Retrieving speedtest.net configuration.. Retrieving speedtest.net server list.. Testing from UK Dedicated Servers Limited (78.157.200.133).. Selecting best server based on latency.. Hosted by Excell Group PLC (London) [2.52 km]: 10.466 ms Testing download speed.................... Download: 67.92 Mbits/s Testing upload speed......................... Upload: 84.22 Mbits/s Share results: http://www.speedtest.net/result/3858774271.png root@uploadbeta:~#
强烈推荐
- 英国代购-畅购英伦
- TopCashBack 返现 (英国购物必备, 积少成多, 我2年来一共得了3000多英镑)
- Quidco 返现 (也是很不错的英国返现网站, 返现率高)
- 注册就送10美元, 免费使用2个月的 DigitalOcean 云主机(性价比超高, 每月只需5美元)
- 注册就送10美元, 免费使用4个月的 Vultr 云主机(性价比超高, 每月只需2.5美元)
- 注册就送10美元, 免费使用2个月的 阿里 云主机(性价比超高, 每月只需4.5美元)
- 注册就送20美元, 免费使用4个月的 Linode 云主机(性价比超高, 每月只需5美元) (折扣码: PodCastInit2022)
- PlusNet 英国光纤(超快, 超划算! 用户名 doctorlai)
- 刷了美国运通信用卡一年得到的积分 换了 485英镑
- 注册就送50英镑 – 英国最便宜最划算的电气提供商
- 能把比特币莱特币变现的银行卡! 不需要手续费就可以把虚拟货币法币兑换
微信公众号: 小赖子的英国生活和资讯 JustYYUK