Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
770cd386
Commit
770cd386
authored
Jun 09, 2017
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upodate
parent
c8920f46
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
81 additions
and
13 deletions
+81
-13
4_build_by_name.sh
qa_shell_script/4_build_by_name.sh
+5
-5
4_build_by_type.sh
qa_shell_script/4_build_by_type.sh
+5
-5
get_env_ip.sh
qa_shell_script/config_server/get_env_ip.sh
+1
-1
exception_sub_shell.sh
qa_shell_script/exception_sub_shell.sh
+4
-2
remove_logs.sh
qa_shell_script/log_shell/remove_logs.sh
+14
-0
20170608.sh
qa_shell_script/migrate_ENV/20170608.sh
+38
-0
20170609.sh
qa_shell_script/migrate_ENV/20170609.sh
+14
-0
.initial_mq.sh.swo
qa_shell_script/rabbitmq/.initial_mq.sh.swo
+0
-0
No files found.
qa_shell_script/4_build_by_name.sh
View file @
770cd386
...
@@ -41,11 +41,11 @@ function buildJavaProject()
...
@@ -41,11 +41,11 @@ function buildJavaProject()
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
fi
if
[[
"
$project
"
=
"baitiao"
]]
;
then
#
if [[ "$project" = "baitiao" ]]; then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
#
num=`grep -n -A1 "<artifactId>quantgroup-sms-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
echo
"----
$project
-----pom.xml file line:
$num
------------"
#
echo "----$project-----pom.xml file line: $num------------"
sed
-i
"
${
num
}
s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
#
sed -i "${num}s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
fi
#
fi
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
then
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
...
...
qa_shell_script/4_build_by_type.sh
View file @
770cd386
...
@@ -36,11 +36,11 @@ function buildJavaProject()
...
@@ -36,11 +36,11 @@ function buildJavaProject()
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
fi
if
[[
"
$project
"
=
"baitiao"
]]
;
then
#
if [[ "$project" = "baitiao" ]]; then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
#
num=`grep -n -A1 "<artifactId>quantgroup-sms-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
echo
"----
$project
-----pom.xml file line:
$num
------------"
#
echo "----$project-----pom.xml file line: $num------------"
sed
-i
"
${
num
}
s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
#
sed -i "${num}s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
fi
#
fi
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
then
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
...
...
qa_shell_script/config_server/get_env_ip.sh
View file @
770cd386
12 13 14 15 16 17 22 23 24 25 26 28 50 151 152 153 154 155 156 158 161 162 163 164
12 13 14 15 16 17 22 23 24 25 26 28 50 151 152 153 154 155 156 158 16
0 16
1 162 163 164
qa_shell_script/exception_sub_shell.sh
View file @
770cd386
...
@@ -78,7 +78,7 @@ tranceConfig java "www.q-gp.com:2181" "192.168.4.14:2181" "192.168.4.14" "xyqb-u
...
@@ -78,7 +78,7 @@ tranceConfig java "www.q-gp.com:2181" "192.168.4.14:2181" "192.168.4.14" "xyqb-u
#tranceConfig java "paycenter.host.url=http:\/\/192.168.4.15:7007" "paycenter.host.url=http:\/\/wechattest1.xyqb.com" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "paycenter.host.url=http:\/\/192.168.4.15:7007" "paycenter.host.url=http:\/\/wechattest1.xyqb.com" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "139.198.2.95:1507" "wechattest1.xyqb.com" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "139.198.2.95:1507" "wechattest1.xyqb.com" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "loanorder" "loanstatus" "192.168.4.15" "xyqb.properties"
#tranceConfig java "loanorder" "loanstatus" "192.168.4.15" "xyqb.properties"
tranceConfig java
"xyqb-ui.url=http://192.168.4.15:7001"
"xyqb-ui.url=http://192.168.4.15:7057"
"192.168.4.15"
"xyqb.properties"
#
tranceConfig java "xyqb-ui.url=http://192.168.4.15:7001" "xyqb-ui.url=http://192.168.4.15:7057" "192.168.4.15" "xyqb.properties"
#tranceConfig java "mall-ui.url=http://192.168.4.15:7058" "mall-ui.url=http://wechattest1.xyqb.com" "192.168.4.15" "xyqb.properties"
#tranceConfig java "mall-ui.url=http://192.168.4.15:7058" "mall-ui.url=http://wechattest1.xyqb.com" "192.168.4.15" "xyqb.properties"
#4.16
#4.16
...
@@ -96,6 +96,8 @@ tranceConfig java "xyqb-ui.url=http://192.168.4.15:7001" "xyqb-ui.url=http://192
...
@@ -96,6 +96,8 @@ tranceConfig java "xyqb-ui.url=http://192.168.4.15:7001" "xyqb-ui.url=http://192
tranceConfig ui
"192.168.4.22:7040"
"activity-ui-22.ss.xyqb.loan"
"192.168.4.22"
"activity-ui.js"
tranceConfig ui
"192.168.4.22:7040"
"activity-ui-22.ss.xyqb.loan"
"192.168.4.22"
"activity-ui.js"
tranceConfig ui
"192.168.4.22:7003/api/coupon/activity/wechat/rent_house/bargain"
"wechattest1.xyqb.com/wechat/active_redirect"
"192.168.4.22"
"activity-ui.js"
tranceConfig ui
"192.168.4.22:7003/api/coupon/activity/wechat/rent_house/bargain"
"wechattest1.xyqb.com/wechat/active_redirect"
"192.168.4.22"
"activity-ui.js"
tranceConfig java
"http://192.168.4.22:7040/to-share"
"http://activity-ui-22.ss.xyqb.loan/to-share"
"192.168.4.22"
"xyqb.properties"
tranceConfig java
"http://192.168.4.22:7040/to-share"
"http://activity-ui-22.ss.xyqb.loan/to-share"
"192.168.4.22"
"xyqb.properties"
tranceConfig ui
"wechattest.xyqb.com"
"wechattest1.xyqb.com"
"192.168.4.22"
"xyqb-user-ui.js"
#4.23
#4.23
#tranceConfig node "db: {\n host: '192.168.4.23'" "db: {\n host: '192.168.4.8'" "192.168.4.23" "*"
#tranceConfig node "db: {\n host: '192.168.4.23'" "db: {\n host: '192.168.4.8'" "192.168.4.23" "*"
...
@@ -119,7 +121,7 @@ tranceConfig java "liebao.aes.key=0123456789abcdef" "liebao.aes.key=e2XNtnB8QEEu
...
@@ -119,7 +121,7 @@ tranceConfig java "liebao.aes.key=0123456789abcdef" "liebao.aes.key=e2XNtnB8QEEu
tranceConfig java
"liebao.md5.key=0123456"
"liebao.md5.key=8KRrA2U"
"192.168.4.151"
"cash-loan-flow.properties"
tranceConfig java
"liebao.md5.key=0123456"
"liebao.md5.key=8KRrA2U"
"192.168.4.151"
"cash-loan-flow.properties"
#tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.151" "xyqb-mall.properties"
#tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.151" "xyqb-mall.properties"
tranceConfig java
"xyqb-ui.url=http:
\/\/
192.168.4.151:7001"
"xyqb-ui.url=http:
\/\/
139.198.2.95:15101"
"192.168.4.151"
"cash-loan-flow.properties"
tranceConfig java
"xyqb-ui.url=http:
\/\/
192.168.4.151:7001"
"xyqb-ui.url=http:
\/\/
139.198.2.95:15101"
"192.168.4.151"
"cash-loan-flow.properties"
tranceConfig java
"permit.new.user = 1"
"permit.new.user = 0"
"192.168.4.151"
"cash-loan-flow.properties"
#
tranceConfig java "permit.new.user = 1" "permit.new.user = 0" "192.168.4.151" "cash-loan-flow.properties"
#4.152
#4.152
...
...
qa_shell_script/log_shell/remove_logs.sh
View file @
770cd386
...
@@ -2,32 +2,46 @@
...
@@ -2,32 +2,46 @@
year
=
`
date
+%Y
`
year
=
`
date
+%Y
`
month
=
`
date
+%m
`
month
=
`
date
+%m
`
date
=
`
date
+%d
`
date
=
`
date
+%d
`
echo
"清空/var/log"
cd
/var/log
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
echo
"清空/usr/local/openresty/nginx/logs"
cd
/usr/local/openresty/nginx/logs
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
echo
"清空/home/quant_group/logs"
cd
/home/quant_group/logs
cd
/home/quant_group/logs
rm
-rf
*
.log.
*
rm
-rf
*
.log.
*
rm
-rf
*
-2017
*
.log
rm
-rf
*
-2017
*
.log
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
echo
"清空/var/log/nginx"
cd
/var/log/nginx
cd
/var/log/nginx
rm
-rf
*
.gz
*
.log-
*
rm
-rf
*
.gz
*
.log-
*
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
echo
"清空/home/quant_group/op-api/logs"
cd
/home/quant_group/op-api/logs
cd
/home/quant_group/op-api/logs
rm
-rf
*
.log.
*
rm
-rf
*
.log.
*
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
echo
"清空/home/quant_group/AppBackend/logs"
cd
/home/quant_group/AppBackend/logs
cd
/home/quant_group/AppBackend/logs
rm
-rf
`
ls
access
*
.log|grep
-v
$year$month$date
`
rm
-rf
`
ls
access
*
.log|grep
-v
$year$month$date
`
rm
-rf
`
ls
*
.log_
*
.log|grep
-v
$year
-
$month
-
$date
`
rm
-rf
`
ls
*
.log_
*
.log|grep
-v
$year
-
$month
-
$date
`
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
echo
"清空/home/quant_group/activity-op/logs"
cd
/home/quant_group/activity-op/logs
cd
/home/quant_group/activity-op/logs
rm
-rf
*
.log.
*
rm
-rf
*
.log.
*
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
echo
"清空/home/quant_group/op-api/logs"
cd
/home/quant_group/op-api/logs
cd
/home/quant_group/op-api/logs
rm
-rf
*
.log.
*
rm
-rf
*
.log.
*
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
for
i
in
`
find
.
-name
"*.log"
`
;
do
cat
/dev/null
>
$i
;
done
echo
"清空/tmp/"
rm
-rf
/tmp/
*
rm
-rf
/tmp/
*
qa_shell_script/migrate_ENV/20170608.sh
0 → 100644
View file @
770cd386
#!/bin/bash
echo
"安装OPENRESTY "
sh /home/qa-deploy-utils/qa_shell_script/TEMP/install_openresty.sh
echo
"设置OPENRESTY 到系统PATH"
sed
-i
"7iexport PATH=/usr/local/openresty/nginx/sbin:
\$
PATH"
~/.bash_profile
echo
"停止当前nginx"
nginx
-s
stop
service nginx stop
echo
"删除原来的nginx"
rm
-rf
/etc/nginx
rm
-rf
/home/quant_group/nginx/
rm
-rf
/usr/sbin/nginx
echo
"环境变量重制"
source
~/.bash_profile
source
~/.bash_profile
echo
"重新关联配置文件"
cd
/usr/local/openresty/nginx/conf
rm
-rf
conf.d
ln
-s
/home/config_files/nginx_conf.d conf.d
rm
-rf
nginx.conf
echo
" nginx基础配置文件更新"
cp
/home/qa-deploy-utils/qa_shell_script/TEMP/nginx.conf nginx.conf
echo
"重启nginx"
nginx
-p
/usr/local/openresty/nginx
-c
/usr/local/openresty/nginx/conf/nginx.conf
ps
-ef
|grep nginx
qa_shell_script/migrate_ENV/20170609.sh
0 → 100644
View file @
770cd386
#!/bin/bash
echo
" nginx基础配置文件更新"
cd
/usr/local/openresty/nginx/conf
rm
-rf
nginx.conf
cp
/home/qa-deploy-utils/qa_shell_script/TEMP/nginx.conf nginx.conf
echo
"重启nginx"
nginx
-p
/usr/local/openresty/nginx
-c
/usr/local/openresty/nginx/conf/nginx.conf
qa_shell_script/rabbitmq/.initial_mq.sh.swo
deleted
100644 → 0
View file @
c8920f46
File deleted
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment