欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

CentOS如何從命令行獲取公網(wǎng)IP

  發(fā)布時(shí)間:2017-01-22 16:08:35   作者:佚名   我要評(píng)論
一些朋友再問(wèn)CentOS如何從命令行獲取公網(wǎng)IP?下面小編將為大家?guī)?lái)的是CentOS從命令行獲取公網(wǎng)IP的方法;希望能夠幫助到大家,有需要的朋友一起去看看吧

最近本地配置了服務(wù)器,使用了家用的帶寬沒(méi)有固定的IP地址。因此,需要獲取到自己的公網(wǎng)IP地址。

機(jī)器是CentOS 6.5的服務(wù)器版本自然就沒(méi)有辦法通過(guò)瀏覽器訪問(wèn)的方式獲取到公網(wǎng)IP地址。

因此記錄一些從命令行獲取公網(wǎng)IP的方法。

首先,需要在機(jī)器上按照curl:

[plain] view plaincopy

sudo yum install curl   其次,使用下列命令中得一個(gè)來(lái)獲取本地地址:

[html] view plaincopy

curl http://members.3322.org/dyndns/getip  

curl ip.6655.com/ip.aspx  

curl ifconfig.me  

curl icanhazip.com  

curl ident.me  

curl ipecho.net/plain  

curl whatismyip.akamai.com  

curl myip.dnsomatic.com     

#更多用法訪問(wèn)ifconfig.co  

wget -qO - ifconfig.co     

#返回IP和地區(qū)  

curl ip.6655.com/ip.aspx?area=1  

curl cip.cc  

相關(guān)文章

最新評(píng)論