Commit 077e12dd authored by 温海元's avatar 温海元

Initial commit

parents
Pipeline #883 failed with stages
server.port = 8585
#spring.datasource.url=jdbc:mysql://192.168.4.251:3306/es_interfaces?useUnicode=true&characterEncoding=UTF-8
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/es_interfaces?useUnicode=true&characterEncoding=UTF-8
spring.datasource.username=rusr
spring.datasource.password=remote2014
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
es_apis_url=http://192.168.4.50:7049/es/httpRequestInfoByDay
page=1
limit=10000
day=1
atm_push_url=http://192.168.4.251/radar/esi?_t=b6ac32dab8b046c8b76fbef38e9eedcb
train.key=46f8921828364eaa9361e7d44f0ede80
apix.key=71158d8f4c0a4fc041f3a4b2c83a209b
wx.mall.apikey=UYu4Rpk08TdaFQLuKYsgF9eiCQ7U2TI1
wx.btzt.apikey=UYu4Rpk08TdaFQLuKYsgF9eiCQ7U2TI1
wx.bt.apikey=53E9BC685BF2CE47D4C064D3737F890B
wx.xyqb.apikey=D51B6C086BAC6BDD612954A2608A3DB7
b
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{"mallui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"spidercenterui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"btui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"activityui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"xyqbuserui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"paycenterui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"xjdui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"newpaycenterui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"newspidercenterui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0}}
\ No newline at end of file
This diff is collapsed.
{"h5ui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"mallui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"spidercenterui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"qgbcui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"btui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"activityui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"xyqbuserui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"paycenterui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"xjdui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"newpaycenterui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0},"newspidercenterui":{"summary":{"total_count":0,"change_flag":0},"detail":[],"status":0}}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
function ack()
{
ack_phrase="$1"
log_path="$2"
max_wait_log_generate_time="$3"
max_wait_ack_time="$4"
wait_log_generate_time=0
wait_ack_time=0
echo "begin acknowledge whether the deploy start OK, ACK_PHRASE=${ack_phrase}, log_path=${log_path}"
while [ ! -f ${log_path} ]
do
echo "wait_log_generate_time is ${wait_log_generate_time}, max_wait_log_generate_time is ${max_wait_log_generate_time} "
if ((${wait_log_generate_time}>${max_wait_log_generate_time}))
then
echo "the log generated time exceed the limit"
exit -1
fi
echo 'the log does not exist, wait for 3 seconds'
sleep 3
let "wait_log_generate_time+=3"
done
echo "listen for the log ack..."
for ((i=0;;))
do
bootstrap_flag=`cat ${log_path} |grep "${ack_phrase}"| wc -l`
if [ "${bootstrap_flag}" = 0 ] && [ "${max_wait_ack_time}" -gt "${wait_ack_time}" ]
then
sleep 3
let "wait_ack_time+=3"
echo "waiting for bootstrap flag for ${wait_ack_time}"
elif [ "${bootstrap_flag}" = 1 ]
then
echo "server is start~"
exit 0
else
echo "server not startup in ${max_wait_ack_time} seconds..."
exit -1
fi
done
}
P_UUID=`ps -ef|grep atm-crypter |grep -v 'grep'|awk '{print $2}'`
echo $P_UUID
if [ -n "${P_UUID}" ];then
echo "-----KILL acsatm PPID=${P_UUID}"
kill -9 ${P_UUID}
sleep 1s
fi
timestamp_log=`date +%Y-%m-%d.%H%M%S`
mv /home/deploy/atm_arms/acs/logs/acs.log /home/deploy/atm_arms/acs/logs/acs.log.$timestamp_log
echo "java -jar /home/deploy/atm_arms/acs/atm-crypter-service-1.0-SNAPSHOT.jar > /dev/null 2>&1 &"
cd /home/deploy/atm_arms/acs/
java -jar /home/deploy/atm_arms/acs/atm-crypter-service-1.0-SNAPSHOT.jar > /dev/null 2>&1 &
ack "Started Application" /home/deploy/atm_arms/acs/logs/acs.log 50 500
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