Commit b2465910 authored by kewei.jia's avatar kewei.jia

配置集群的修改

parent 52d86214
......@@ -12,23 +12,23 @@ package_path="${module_path}/app.jar"
config_path="${module_path}/application.properties"
log_path="/home/quant_group/logs"
echo 192.168.4.50 eos.quantgroups.com >> /etc/hosts
if [[ $CLUSTER == 'qke' ]]; then
echo 172.30.3.209 apollo-dev.quantgroups.com >> /etc/hosts
else
echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts
fi
echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
#OLD_IFS="$IFS"
#IFS="&"
#array=($HOSTS)
#IFS="$OLD_IFS"
#
#for var in ${array[@]}
#do
# echo $var|sed "s#=># #g" >> /etc/hosts
#done
#echo 192.168.4.50 eos.quantgroups.com >> /etc/hosts
#if [[ $CLUSTER == 'qke' ]]; then
# echo 172.30.3.209 apollo-dev.quantgroups.com >> /etc/hosts
#else
# echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts
#fi
#echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
OLD_IFS="$IFS"
IFS="&"
array=($HOSTS)
IFS="$OLD_IFS"
for var in ${array[@]}
do
echo $var|sed "s#=># #g" >> /etc/hosts
done
# echo 172.30.3.206 apollo-dev.quantgroups.com >> /etc/hosts
# echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
......
......@@ -10,25 +10,25 @@ cd ${package_path}
echo "echo host"
#OLD_IFS="$IFS"
#IFS="&"
#array=($HOSTS)
#IFS="$OLD_IFS"
#
#for var in ${array[@]}
#do
# echo $var|sed "s#=># #g" >> /etc/hosts
#done
OLD_IFS="$IFS"
IFS="&"
array=($HOSTS)
IFS="$OLD_IFS"
for var in ${array[@]}
do
echo $var|sed "s#=># #g" >> /etc/hosts
done
echo 192.168.4.50 eos.quantgroups.com >> /etc/hosts
#echo 192.168.4.50 eos.quantgroups.com >> /etc/hosts
# qke直连apollo服务 begin
if [[ $CLUSTER == 'qke' ]]; then
echo 172.30.3.208 apollo-dev.quantgroups.com >> /etc/hosts
else
echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts
fi
#if [[ $CLUSTER == 'qke' ]]; then
# echo 172.30.3.208 apollo-dev.quantgroups.com >> /etc/hosts
#else
# echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts
#fi
# end
# echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment