摘要: # 判断是否启动了Redis,仅作为提醒 REDIS_PIDS=$(ps -ef | grep redis | grep -v grep | awk '{print $2}') if [ "$REDIS_PIDS" = "" ]; then Echo_Yellow "Redis is not run 阅读全文
posted @ 2020-06-11 18:23 TBHacker 阅读(1629) 评论(0) 推荐(0) 编辑
摘要: 本来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 意 阅读全文
posted @ 2020-06-11 15:00 TBHacker 阅读(158) 评论(0) 推荐(0) 编辑
摘要: InstallWhileHostsExist="" Echo_Yellow "Do you want to continue install?" read -p "Default continue,Enter your choice [Y/n]: " InstallWhileHostsExist c 阅读全文
posted @ 2020-06-11 14:11 TBHacker 阅读(706) 评论(0) 推荐(0) 编辑