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
bb6bdaee
Commit
bb6bdaee
authored
Aug 09, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ca328c78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
clear_redis.sh
qa_shell_script/script_by_Contorller/clear_redis.sh
+3
-2
delete_All_Data.sh
qa_shell_script/script_by_Contorller/delete_All_Data.sh
+1
-1
No files found.
qa_shell_script/script_by_Contorller/clear_redis.sh
View file @
bb6bdaee
#!/bin/bash
ip
=
$1
port
=
$2
#连接服务
function
clear_redis
(){
expect
-c
"
...
...
@@ -8,11 +9,11 @@ function clear_redis(){
expect
\"
]#
\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script/redis_script
\r\"
expect
\"
]#
\"
send
\"
sh flush_all.sh
\r\"
send
\"
sh flush_all.sh
$port
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
exit
\r\"
expect eof;"
}
clear_redis
$ip
\ No newline at end of file
clear_redis
qa_shell_script/script_by_Contorller/delete_All_Data.sh
View file @
bb6bdaee
...
...
@@ -117,7 +117,7 @@ function deleteAlldata()
redis-cli
-h
$ip
-p
6379 del
$redis_key
#redis-cli -h $ip -p 6379 keys *$token* | xargs redis-cli -h $ip -p 6379 del
fi
fi
fi
}
deleteAlldata
$ip
$phone_no
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