获取linux服务器IP
2013-03-11 17:00
225 查看
function get_linux_ip { echo "start to read host ip" if [ -f /home/1.properties ];then echo "file is exsit" cd /home rm -rf 1.properties cd .. else echo "file is not exsit" cd /home touch 1.properties cd .. fi echo `/sbin/ifconfig -a | grep inet | grep -v inet6 | awk -F ":" '{print $2}'|awk -F " " '{print $1}'` >> /home/1.properties echo "end to read host ip "
}
相关文章推荐
- linux服务器网络配置_自动获取ip_手动设置静态ip
- js获取客户端IP及地理位置
- ip address control获取ip字符串
- C#获取本地计算机名,IP,MAC地址,硬盘ID
- 获取本机ip
- Java获取linux Ip
- PHP 获取客户端IP
- java 反向代理的项目怎么获取访问者IP
- jsp中获取本机ip
- shell获取本机ip
- go 通过nginx代理后获取用户ip
- 批量ping域名获取ip
- 获取客户端和服务器端的ip
- nginx做负载CDN加速获取端真实ip
- php 获取客户端IP
- C#获取内网和外网IP
- request nginx 透传获取真实的ip
- 通过ip获取地理位置信息
- c#获取本地连接的ip 子网掩码 网关 DNS
- php获取指定(访客)IP所有信息(地址、邮政编码、国家、经纬度等)的方法