摘要:
# 判断是否启动了Redis,仅作为提醒 REDIS_PIDS=$(ps -ef | grep redis | grep -v grep | awk '{print $2}') if [ "$REDIS_PIDS" = "" ]; then Echo_Yellow "Redis is not run 阅读全文
摘要:
本来1 >屏幕 (1指向屏幕) 执行>log后, 1 >log (1指向log) 执行2>&1后, 2 >1 (2指向1,而1指向log,因此2也指向了log) 通常放到后面!!! cnpm install >> $all_log_file 2>&1 # 将标准错误也输出到log中 , 2>&1 意 阅读全文
摘要:
InstallWhileHostsExist="" Echo_Yellow "Do you want to continue install?" read -p "Default continue,Enter your choice [Y/n]: " InstallWhileHostsExist c 阅读全文