# 判断是否启动了Redis,仅作为提醒
REDIS_PIDS=$(ps -ef | grep redis | grep -v grep | awk ‘{print $2}‘)
if [ "$REDIS_PIDS" = "" ]; then
Echo_Yellow "Redis is not runing."
#运行进程
fi
2023-12-10 16:11:15
# 判断是否启动了Redis,仅作为提醒
REDIS_PIDS=$(ps -ef | grep redis | grep -v grep | awk ‘{print $2}‘)
if [ "$REDIS_PIDS" = "" ]; then
Echo_Yellow "Redis is not runing."
#运行进程
fi