摘要:
//静态设置:只能在索引创建时或者在状态为 closed index(闭合的索引)上设置 index.number_of_shards //主分片数,默认为5.只能在创建索引时设置,不能修改 index.shard.check_on_startup //是否应在索引打开前检查分片是否损坏,当检查到分 阅读全文
摘要:
#!/usr/bin/python #coding=utf-8 #@rename file #@2019/11/27 import os ls = os.rename('/root/tigergao.py','/root/test.py') print("重命名成功") files = os.lis 阅读全文
摘要:
当发现某个分区下的inode使用率过大时,需要找到该分区下的某些目录里有哪些文件可以清理。 查找某个目录下一个月或两个月之前的文件,然后删除# find . -type f -mtime +30 |wc -l# find . -type f -mtime +60 |wc -l# find . -ty 阅读全文