我試圖將mongodb 3.2安裝到使用終端的codio中,並且我正在遵循其網站上的指南here。 (我是新來的MongoDB和NoSQL)使用內置終端(Ubuntu 14.04.3)在Codio中安裝mongodb 3.2
我使用此命令第4步安裝的MongoDB:
命令和apt-get安裝-y MongoDB中,組織
了在結束了以下內容:
..
The following packages will be upgraded:
mongodb-org
1 upgraded, 0 newly installed, 0 to remove and 51 not upgraded.
2 not fully installed or removed.
Need to get 3,554 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://repo.mongodb.org/apt/ubuntu/ trusty/mongodb-org/3.2/multiverse mongodb-org amd64 3.2.2 [3,554 B]
Fetched 3,554 B in 0s (249 kB/s)
(Reading database ... 37250 files and directories currently installed.)
Preparing to unpack .../mongodb-org_3.2.2_amd64.deb ...
Unpacking mongodb-org (3.2.2) over (3.2.1) ...
Setting up mongodb-org-server (3.2.2) ...
start: Job failed to start
invoke-rc.d: initscript mongod, action "start" failed.
dpkg: error processing package mongodb-org-server (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mongodb-org:
mongodb-org depends on mongodb-org-server; however:
Package mongodb-org-server is not configured yet.
dpkg: error processing package mongodb-org (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mongodb-org-server
mongodb-org
E: Sub-process /usr/bin/dpkg returned an error code (1)
然後我跑
須藤服務的mongod啓動
或
須藤服務的MongoDB啓動
將響應與start: Job failed to start
或mongodb: unrecognized service
我在這裏失去了一些東西例如像這兩個命令mongodb需要安裝其他軟件包嗎?錯誤的指導版本?我需要創建配置文件嗎?如果我做得如何?因爲它沒有創建一個,或者mongodb不能使用內置終端進行編輯? mongodb-org-server是否已經安裝或運行?我一直在尋找確切的或類似的東西,也嘗試過不同的命令,但沒有運氣。