shell获取linux服务器对外IP技巧

 在服务器执行
curl http://iframe.ip138.com/ic.asp
curl http://iframe.ip138.com/ic.asp |iconv -f gb2312 -t utf-8 # 上面命令有乱码执行这个

curl http://members.3322.org/dyndns/getip # 更简单的版本

 
-end

猜你喜欢

转载自heipark.iteye.com/blog/1963736
今日推荐