我尝试通过以下命令使用MongoDB安装BigchainDB:
mongod --replSet=bigchain-rs,但它不工作错误消息是:
2017-02-21T15:45:19.256+0100 I CONTROL [initandlisten] MongoDB starting : pid=29536 port=27017 dbpath=/data/db 64-bit host=chebbi-X556UV
2017-02-21T15:45:19.256+0100 I CONTROL [initandlisten] db version v3.4.1
2017-02-21T15:45:19.256+0100 I CONTROL [initandlisten] git version: 5e103c4f5583e2566a45d740225dc250baacfbd7
2017-02-21T15:45:19.256+0100 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
2017-02-21T15:45:19.256+0100 I CONTROL [initandlisten] allocator: tcmalloc
2017-02-21T15:45:19.256+0100 I CONTROL [initandlisten] modules: none
2017-02-21T15:45:19.256+0100 I CONTROL [initandlisten] build environment:
2017-02-21T15:45:19.256+0100 I CONTROL [initandlisten] distmod: ubuntu1604
2017-02-21T15:45:19.256+0100 I CONTROL [initandlisten] distarch: x86_64
2017-02-21T15:45:19.256+0100 I CONTROL [initandlisten] target_arch: x86_64
2017-02-21T15:45:19.256+0100 I CONTROL [initandlisten] options: { replication: { replSet: "bigchain-rs" } }
2017-02-21T15:45:19.292+0100 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory /data/db not found., terminating
2017-02-21T15:45:19.292+0100 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2017-02-21T15:45:19.292+0100 I NETWORK [initandlisten] shutdown: going to flush diaglog...
2017-02-21T15:45:19.292+0100 I CONTROL [initandlisten] now exiting
2017-02-21T15:45:19.292+0100 I CONTROL [initandlisten] shutting down with code:100发布于 2017-04-06 17:35:41
问题是目录/data/db不存在。看看这个问题,它可能会帮助你解决你的问题:
https://stackoverflow.com/questions/42371441
复制相似问题