nosql - 请问MongoDb的系统日志能限制大小吗?到一定程度就自动删除等,
高洛峰
高洛峰 2017-04-21 11:15:47
0
5
649

目前MongDb的系统日志log非常大,已经去到几G的级别了.请问我们限制它的大小么?或者MongoDb自动清理

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(5)
Peter_Zhu

MongoDB logRotate

大家讲道理

Use a fixed collection to store logs. When inserting new logs, the oldest logs will be deleted (if the preset size has been reached)

伊谢尔伦

The so-called capped collection

洪涛

You can use -v mode or -quiet mode to reduce the amount of irrelevant debugging logs

PHPzhong

Write a script to clean it up yourself

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!