方法一:
[root@localhost /]# curl ifconfig.me
121.101.xxx.xxx
方法二:
因为某种原因,需要知道本地服务器出口IP,可以用以下方法检测:
wget img/20170809/2inethnaddu style="color:#5e6a72;font-family:'lucida grande', helvetica, tahoma, arial, sans-serif;font-size:12px;line-height:21px;background-color:#ffffff;" />cat getip