Linux获取本服务器的公网IP地址

curl ifconfig.me
curl icanhazip.com
curl ident.me



http://ifconfig.me/  可以获取指定的参数。