added redis tools
This commit is contained in:
8
src/redis_tools/flush-all.sh
Executable file
8
src/redis_tools/flush-all.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
read -p "Really delete all redis data? " -n 1 -r
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
for i in `seq 2337 2344`; do redis-cli -p "$i" flushall; done
|
||||
fi
|
||||
Reference in New Issue
Block a user