清理日志
介绍如何清理服务日志、数据库日志
清理服务日志
# 查看具体服务的分表日志
$ climc logs-show --service <service_type> splitable
# 删除超过6个月的分表
$ climc logs-purge-splitable --service <service_type>
清理数据库日志
在部署日志的服务器上执行
# 设置自动清除binlog的保留时间
$ vi /etc/my.cnf
expire_logs_days = 30
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.