使用以下命令即可查询当前服务器的公网ip地址,任意一个都行 curl ifconfig.me curl ipinfo.io/ip curl icanhazip.com curl api.ipify.org