2017-02-03 150 views
1

我已經使用這個命令後,從docs如何在ubuntu 16.04.1上安裝mongodb?

說明:

sudo apt-get install -y mongodb-org 

我得到這樣的警告:

WARNING: The following packages cannot be authenticated! 
    mongodb-org-shell mongodb-org-server mongodb-org-mongos mongodb-org-tools mongodb-org 
E: There were unauthenticated packages and -y was used without --allow-unauthenticated 

它的指令來啓動和測試給出了以下幾點:

sudo service mongod start 

cat /var/log/mongodb/mongod.log 
cat: /var/log/mongodb/mongod.log: No such file or directory 
+0

可能是你錯過了一些步驟。你是否從這裏開始執行命令:https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/#import-the-public-key-used-by-the-package-management-system – oblivion

+0

是的,我確定我已經按照正確的順序完成了所有步驟。我已經嘗試了很多次。 – Brian

+0

可能是這個幫助:http://stackoverflow.com/questions/34733340/mongodb-gpg-invalid-signatures – oblivion

回答