Linux获取本服务器的公网IP地址 curl ifconfig.mecurl icanhazip.comcurl ident.me http://ifconfig.me/ 可以获取指定的参数。 转载于:https://blog.51cto.com/loopeelee/1612475