标签:print echo 启动 提醒 grep -v 进程 yellow shel 运行
# 判断是否启动了Redis,仅作为提醒
REDIS_PIDS=$(ps -ef | grep redis | grep -v grep | awk ‘{print $2}‘)
if [ "$REDIS_PIDS" = "" ]; then
Echo_Yellow "Redis is not runing."
#运行进程
fi
标签:print echo 启动 提醒 grep -v 进程 yellow shel 运行
原文地址:https://www.cnblogs.com/jiqing9006/p/13095093.html