batch configure ip address
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了batch configure ip address相关的知识,希望对你有一定的参考价值。
RETVAL=0oper(){
if [ "$1" == "del" ];then
list=
echo{10..1}
else
list=
echo{1..10}
fi
for ip in $list;do
if [ $ip -eq 5 ];then
continue
fi
ip addr $1 192.168.1.$ip/14 dev eth0 label eth0:$ip &>/dev/null
RETVAL=$?
if [ $RETVAL -eq 0 ];then
action "$1 $ip" /bin/true
else
action "$1 $ip" /bin/false
fi
done
return $RETVAL
}
case "$1" in
start)
oper add
RETVAL=$?
;;
stop)
oper del
RETVAL=$?
;;
restart)
oper del
sleep 2
oper add
RETVAL=$?
;;
*)
printf "USAGE:$0 {start|stop|restart}\n"
esac
exit $RETVAL
以上是关于batch configure ip address的主要内容,如果未能解决你的问题,请参考以下文章
Spring boot Batch 的启动原理- Configuration
Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-addres