摘要: 1. 修改redis.conf文件中daemonize默认值,修改为daemonize yes,设置后台启动 2. #requirepass foobared 去掉注释修改为requirepass myPassword 2. 启动redis ./redis-server ../redis.conf 阅读全文
posted @ 2019-11-18 17:45 i孤独行者 阅读(267) 评论(0) 推荐(0) 编辑
摘要: sed -n '/起始时间/,/结束时间/p' 日志文件 | grep '关键字' 查询文件debug.log在2019-11-18 08:00:00~2019-11-18 08:21:00时间段内error关键字出现的位置 sed -n '/2019-11-18 08:00:00/,/2019-1 阅读全文
posted @ 2019-11-18 16:44 i孤独行者 阅读(1039) 评论(0) 推荐(0) 编辑