2
我可以正常運行mongod
。但是如果我運行service mongodb start
,以下錯誤將出現在日誌中,並且mongod
未啓動。可以在前臺運行`mongod`,但不能作爲守護進程運行
2016-12-02T01:16:40.804+0200 F INDEX [initandlisten] Found an invalid index { v: 2, key: { version: 1 }, name: "incompatible_with_version_32", ns: "admin.system.version" } on the admin.system.version collection: this version of mongod cannot build new indexes of version number 2
操作系統:Ubuntu的LTS 14.04.5
MongoDB的版本:
$ mongod --version
db version v3.2.11
git version: 009580ad490190ba33d1c6253ebd8d91808923e4
OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
allocator: tcmalloc
modules: none
build environment:
distmod: ubuntu1404
distarch: x86_64
target_arch: x86_64
UPDATE:找到this。那麼我應該在Ubuntu 14.04中等待v3.3.15嗎?
是的,其實我是移動'/數據/ db'('mongod'的默認值),'/ var/lib/mongodb'('/etc/mongod.conf'的默認值)。 – ziyuang