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

配置集群的修改

parent 4ff2eda2
...@@ -12,13 +12,23 @@ package_path="${module_path}/app.jar" ...@@ -12,13 +12,23 @@ package_path="${module_path}/app.jar"
config_path="${module_path}/application.properties" config_path="${module_path}/application.properties"
log_path="/home/quant_group/logs" log_path="/home/quant_group/logs"
echo 192.168.4.50 eos.quantgroups.com >> /etc/hosts #echo 192.168.4.50 eos.quantgroups.com >> /etc/hosts
if [[ $CLUSTER == 'qke' ]]; then #if [[ $CLUSTER == 'qke' ]]; then
echo 172.30.3.209 apollo-dev.quantgroups.com >> /etc/hosts # echo 172.30.3.209 apollo-dev.quantgroups.com >> /etc/hosts
else #else
echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts # echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts
fi #fi
echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts #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.30.3.206 apollo-dev.quantgroups.com >> /etc/hosts
# echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts # echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
......
...@@ -9,14 +9,28 @@ cd ${package_path} ...@@ -9,14 +9,28 @@ cd ${package_path}
echo "echo host" 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
echo 192.168.4.50 eos.quantgroups.com >> /etc/hosts echo 192.168.4.50 eos.quantgroups.com >> /etc/hosts
# qke直连apollo服务 # qke直连apollo服务 begin
if [[ $CLUSTER == 'qke' ]]; then #if [[ $CLUSTER == 'qke' ]]; then
echo 172.30.3.208 apollo-dev.quantgroups.com >> /etc/hosts # echo 172.30.3.208 apollo-dev.quantgroups.com >> /etc/hosts
else #else
echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts # echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts
fi #fi
# end
# echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts # echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
echo "tar zxf dist.tgz -C ${package_path}" echo "tar zxf dist.tgz -C ${package_path}"
......
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