Wener Site

Linode

约 2 分钟阅读
  • 所有实例共享总流量
  • 超出网络流量后 0.01/GB−1TB0.01/GB - 1TB 10
  • Linode Image $0.10/mo, 可以做小一点的系统镜像, 不用了保存为 Image 再用恢复即可
  • 目前被 akamai 收购

Service

Regions

bash
curl https://api.linode.com/v4/regions | jq '.data[].id' -r
bash
ip=$(curl -sf "https://speedtest.tokyo2.linode.com/getIP.php" | jq -r .processedString | egrep -o '^[0-9.]+')
ping $ip

cat << EOF > curl-format.txt
     time_namelookup:  %{time_namelookup}s\n
        time_connect:  %{time_connect}s\n
     time_appconnect:  %{time_appconnect}s\n
    time_pretransfer:  %{time_pretransfer}s\n
       time_redirect:  %{time_redirect}s\n
  time_starttransfer:  %{time_starttransfer}s\n
      speed_download:  %{speed_download}s\n
                      ----------\n
          time_total:  %{time_total}s\n
EOF

# 测试延迟
curl -w "@curl-format.txt" https://speedtest.tokyo2.linode.com/empty.php
# 测试上传
# curl -X POST -o /dev/null https://speedtest.tokyo2.linode.com/empty.php --data-binary @/dev/null
# 测试下载
# curl -o /dev/null "https://speedtest.tokyo2.linode.com/garbage.php?ckSize=100"
curl -o /dev/null -r -1024000 -w "@curl-format.txt" https://speedtest.tokyo2.linode.com/100MB-tokyo2.bin > tokyo2.txt

# 测试所有区域 - 测试 10MB
for i in newark singapore london frankfurt dallas toronto1 syd1 atlanta tokyo2 mumbai1 fremont; do
  echo "Testing $i"
  curl -o /dev/null -r -10000000 -w "@curl-format.txt" https://speedtest.$i.linode.com/100MB-$i.bin > $i.txt
done

# 最快的 - 测试 50MB
for i in atlanta dallas syd1 toronto1 fremont; do
  echo "Testing $i"
  curl -o /dev/null -r -50000000 -w "@curl-format.txt" https://speedtest.$i.linode.com/100MB-$i.bin > $i.txt
done

# 最快的两个
for i in dallas fremont; do
  echo "Testing $i"
  curl -o /dev/null -r -100000000 -w "@curl-format.txt" https://speedtest.$i.linode.com/100MB-$i.bin > $i.txt
done

curl -o /dev/null -w "@curl-format.txt" https://speedtest.dallas.linode.com/100MB-dallas.bin > dallas.txt
curl -o /dev/null -w "@curl-format.txt" https://speedtest.singapore.linode.com/100MB-singapore.bin > singapore.txt

fping -ac 60 speedtest.{newark,singapore,london,frankfurt,dallas,toronto1,syd1,atlanta,tokyo2,mumbai1,fremont}.linode.com

FAQ

Network Auto conf

bash
# restore
mv /etc/.resolv.conf.linode-orig /etc/resolv.conf
/etc/resolv.conf
domain members.linode.com
search members.linode.com
nameserver 139.162.16.5
nameserver 139.162.6.5
nameserver 139.162.22.7
options rotate

关联信息

反向链接和本文引用的外部资料。

References

GitHub

2 条

其他外链

9 条

另有 1 个未显示 references。

另有 1 个 references 未显示。

最近更新commit d8b44e6Edit

On this page