~ git:(stage-test) ✗ mongod
git
MongoDB shell version v3.6.4 connecting to: mongodb://127.0.0.1:27017 2019-09-17T18:15:30.930+0800 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused 2019-09-17T18:15:30.932+0800 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:251:13 @(connect):1:6mongodb
解決方式:shell