摘要: 阅读全文
posted @ 2019-04-17 11:32 dfh168 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1.{ "sort": [ { "timeUpdate": { "order": "desc" } } ], "query": { "bool": { "must": [ { "match": { "sort": "求助" } }, { "terms": { "parentType": [ "ser 阅读全文
posted @ 2019-04-17 10:23 dfh168 阅读(1868) 评论(0) 推荐(0) 编辑
摘要: 1.按时间拼接字符串修改库里面字段UPDATE communitytemp set dbName = CONCAT('sofang20_house_',year(timeCreate)),tbName = CONCAT('houserent_',extract(YEAR_MONTH from tim 阅读全文
posted @ 2019-04-17 10:21 dfh168 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #redis统计大key redis-cli --bigkeys -i 0.1 -h 127.0.0.1 #批量模糊删除redis缓存 redis-cli -h linkstars_sso_redis_cache_m01 -p 6379 keys 'sso_user_*' | xargs redis 阅读全文
posted @ 2019-04-16 23:19 dfh168 阅读(94) 评论(0) 推荐(0) 编辑
摘要: #根据文件内容查找文件 find ./ -name "*.conf" | xargs grep "v1.0/web" #统计行数 在文件a中统计hello出现的行数:grep hello a | wc -l在文件a中统计hello出现的次数:grep -o hello a | wc -l #查看脚本 阅读全文
posted @ 2019-04-16 23:07 dfh168 阅读(182) 评论(0) 推荐(0) 编辑