linux系统下怎么查看所在公网的ip
[root@localhost shopex]# curl http://ifconfig.me
**.21*.7.1*0
[root@localhost shopex]#
查看本机的ip[root@localhost shopex]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:FC:ED:0D
inet addr:172.16.1.227 Bcast:172.16.3.255 Mask:255.255.252.0
inet6 addr: fe80::2e0:4cff:fefc:ed0d/64 Scope:Link