MongoDB日志回滚

# kill -SIGUSR1 `cat /var/run/mongodb.pid`

用在shell脚本里时,命令要改成这样: kill -USR1 `cat /var/run/mongodb.pid`

参考:http://www.mongodb.org/display/DOCS/Logging#Logging-Rotatingthelogfiles