摘要:
问题描述: ubuntu下仅仅获取网卡一的ip地址问题背景: eth0,eth1,eth2……代表网卡一,网卡二,网卡三…… lo代表127.0.0.1,即localhostsudo ifconfig eth0 | grep 'inet addr' | cut -d : -f 2 | cut ... 阅读全文
posted @ 2015-04-22 19:15
lasclocker
阅读(911)
评论(0)
推荐(0)
摘要:
问题描述: 把字符串tarFile和数组slaves_hostIP传入函数processArray中并输出结果.#!/bin/bashfunction processArray() { tarFile=$1 echo $tarFile local slaves_hostIP=($... 阅读全文
posted @ 2015-04-22 18:53
lasclocker
阅读(842)
评论(0)
推荐(0)
摘要:
文件/etc/hdocker_config内容如下:30.72.63.94 30.72.63.95 30.72.63.96 30.72.63.97/tmp/lasclocker.tarmaster slave1 slave2 slave3实现功能:依次读取该文件的每一行,并赋值于数组tmp,并把数组... 阅读全文
posted @ 2015-04-22 15:46
lasclocker
阅读(1226)
评论(0)
推荐(0)
浙公网安备 33010602011771号