#!/bin/sh
echo -e "\033[33m正在关闭redis服务和测试redis进程是否关闭...\033[0m"
pkill redis-server
sleep 1
#echo -e "\033[33m测试redis进程是否关闭...\033[0m"
ps -ef|grep redis-server
sleep 1
echo ""
echo -e "\033[33m正在启动redis服务...\033[0m"
/SVNROOT/bin/redis/bin/redis-server /SVNROOT/bin/redis/config/redis.conf
sleep 1
echo ""
echo -e "\033[33m测试redis进程是否运行...\033[0m"
ps -ef|grep redis-server