IT学习者博客

mongodb日志按天拆分。

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

linux:   

kill -SIGUSR1 2200        //2202是mongo进程pid

windows:

use admin
db.runCommand( { logRotate : 1 } )

官方文档:

http://docs.mongodb.org/manual/tutorial/rotate-log-files/

http://docs.mongodb.org/manual/reference/command/logRotate/#dbcmd.logRotate

转载于:https://my.oschina.net/song316/blog/228941

« Previous

Android项目中的values-sw720dp

Next »

随机任务在云计算平台中能耗的优化管理方法

© 2024 IT学习者博客. Generated with Hugo and Mainroad theme.