在将 mongodb 副本集转换为独立服务器后,我遇到了以下警告。我做了 rs.remove('host') 并在启动 mongo db 时删除了 replSet 参数。
[root@sam ~]# mongo
MongoDB shell version: 2.4.3
connecting to: test
Server has startup warnings:
Tue Jul 9 17:18:46.076 [initandlisten]
Tue Jul 9 17:18:46.076 [initandlisten] ** WARNING: mongod started without --replSet yet 1 documents are present in local.system.replset
Tue Jul 9 17:18:46.077 [initandlisten] ** Restart with --replSet unless you are doing maintenance and no other clients are connected.
Tue Jul 9 17:18:46.077 [initandlisten] ** The TTL collection monitor will not start because of this.
Tue Jul 9 17:18:46.077 [initandlisten] ** For more info see http://dochub.mongodb.org/core/ttlcollections
Tue Jul 9 17:18:46.077 [initandlisten]
>
请帮忙。需要立即修复。谢谢。