0
關閉我在這裏使用說明上索盧斯Linux上安裝MongoDB的:使用Solus Linux來安裝MongoDB。我設置路徑變量,但在的mongod推出
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-linux/
我有蒙戈DB一個桌面上名爲mongo
文件夾中。
我用下面以「設置PATH變量」中的說明(我不知道如果我這樣做是正確的)
export PATH=Desktop/mongo/bin:$PATH
在我到了終端:
[email protected] ~ $
我然後鍵入mongod
結果是以下錯誤:
2016-12-21T02:53:55.328-0800 I CONTROL [initandlisten] MongoDB starting : pid=5052 port=27017 dbpath=/data/db 64-bit host=solus
2016-12-21T02:53:55.328-0800 I CONTROL [initandlisten] db version v3.4.1
2016-12-21T02:53:55.328-0800 I CONTROL [initandlisten] git version: 5e103c4f5583e2566a45d740225dc250baacfbd7
2016-12-21T02:53:55.328-0800 I CONTROL [initandlisten] allocator: tcmalloc
2016-12-21T02:53:55.328-0800 I CONTROL [initandlisten] modules: none
2016-12-21T02:53:55.328-0800 I CONTROL [initandlisten] build environment:
2016-12-21T02:53:55.328-0800 I CONTROL [initandlisten] distarch: x86_64
2016-12-21T02:53:55.328-0800 I CONTROL [initandlisten] target_arch: x86_64
2016-12-21T02:53:55.328-0800 I CONTROL [initandlisten] options: {}
2016-12-21T02:53:55.328-0800 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory /data/db not found., terminating
2016-12-21T02:53:55.328-0800 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2016-12-21T02:53:55.328-0800 I NETWORK [initandlisten] shutdown: going to flush diaglog...
2016-12-21T02:53:55.328-0800 I CONTROL [initandlisten] now exiting
2016-12-21T02:53:55.328-0800 I CONTROL [initandlisten] shutting down with code:100
它說它找不到數據/數據庫文件夾,但我已經嘗試將它放在mongo目錄以及主目錄中。