我想在Windows上運行流星應用程序。從堆棧跟蹤我的結論是,它無法建立連接蒙戈DB窗口上的流星MongoDb連接
λ meteor --settings settings.json --port 3000
[[[[[ C:\Users\User\code\some_service ]]]]]
=> Started proxy.
=> Exited with code: 8
W20160518-08:35:40.664(2)? (STDERR)
W20160518-08:35:40.665(2)? (STDERR) C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.3.2_4\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:278
W20160518-08:35:40.665(2)? (STDERR) throw(ex);
W20160518-08:35:40.665(2)? (STDERR) ^
W20160518-08:35:40.665(2)? (STDERR) Error: failed to connect to [localhost:27017]
W20160518-08:35:40.665(2)? (STDERR) at Object.Future.wait (C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.3.2_4\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:398:15)
W20160518-08:35:40.665(2)? (STDERR) at new MongoConnection (packages/mongo/mongo_driver.js:213:27)
W20160518-08:35:40.666(2)? (STDERR) at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:4:16)
W20160518-08:35:40.666(2)? (STDERR) at Object.<anonymous> (packages/mongo/remote_collection_driver.js:38:10)
W20160518-08:35:40.666(2)? (STDERR) at Object.defaultRemoteCollectionDriver (packages/underscore/underscore.js:750:1)
W20160518-08:35:40.666(2)? (STDERR) at new Mongo.Collection (packages/mongo/collection.js:102:40)
W20160518-08:35:40.666(2)? (STDERR) at AccountsServer.AccountsCommon (packages/accounts-base/accounts_common.js:23:18)
W20160518-08:35:40.666(2)? (STDERR) at new AccountsServer (packages/accounts-base/accounts_server.js:18:5)
W20160518-08:35:40.667(2)? (STDERR) at meteorInstall.node_modules.meteor.accounts-base.server_main.js (packages/accounts-base/server_main.js:9:12)
W20160518-08:35:40.667(2)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:141:1)
W20160518-08:35:40.667(2)? (STDERR) - - - - -
W20160518-08:35:40.667(2)? (STDERR) at [object Object].<anonymous> (C:\Users\User\AppData\Local\.meteor\packages\npm-mongo\1.4.43\npm\node_modules\mongodb\lib\mongodb\connection\server.js:556:74)
W20160518-08:35:40.667(2)? (STDERR) at [object Object].emit (events.js:106:17)
W20160518-08:35:40.667(2)? (STDERR) at [object Object].<anonymous> (C:\Users\User\AppData\Local\.meteor\packages\npm-mongo\1.4.43\npm\node_modules\mongodb\lib\mongodb\connection\connection_pool.js:156:15)
W20160518-08:35:40.667(2)? (STDERR) at [object Object].emit (events.js:98:17)
W20160518-08:35:40.668(2)? (STDERR) at Socket.<anonymous> (C:\Users\User\AppData\Local\.meteor\packages\npm-mongo\1.4.43\npm\node_modules\mongodb\lib\mongodb\connection\connection.js:534:10)
W20160518-08:35:40.668(2)? (STDERR) at Socket.emit (events.js:95:17)
W20160518-08:35:40.668(2)? (STDERR) at net.js:441:14
W20160518-08:35:40.668(2)? (STDERR) at process._tickCallback (node.js:458:13)
:
meteor --settings settings.json --port 3000
我得到這個錯誤。我調查了一下,他們說那裏我應該從mongo 3.2降級到3.0,因爲3.2不兼容。
如果這是一個問題。如何更改流星中的mongo版本。
如果問題是別的,請告知。
我正在使用[email protected]和節點v0.10.43。該應用程序在Mac和Ubuntu上正常工作。
如何在Windows上做到這一點?謝謝。 – eomeroff
有一個關於該:)的完整文檔。你可以在這裏找到它:https://docs.mongodb.com/manual/release-notes/3.2-downgrade/ –