常用一句话脚本

本篇记录了日常开发运维工作过程中经常用到的一些命令

用途 命令
Docker安装 curl -s https://get.docker.com| sudo bash
Zerotier安装 curl -s https://install.zerotier.com| sudo bash
获取IP curl -s https://ipinfo.io
服务器测速 curl -Lso- bench.sh| bash
# 请勿用于商业用途,仅供个人测试学习之用,请遵守中国法律法规
# 查询本机外网IPv4地址
curl 4.ipw.cn

# 查询本机外网IPv6地址
curl 6.ipw.cn

# 测试网络是IPv4还是IPv6访问优先(访问IPv4/IPv6双栈站点,如果返回IPv6地址,则IPv6访问优先)
curl test.ipw.cn