[英]how to install mongodb on ubuntu 16.04.1?
I have used the instructions from the docs 我已经使用了文档中的说明
after this command: 在此命令之后:
sudo apt-get install -y mongodb-org
I get this warning: 我收到此警告:
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
Its instruction to start and test gives the following: 其启动和测试说明如下:
sudo service mongod start
cat /var/log/mongodb/mongod.log
cat: /var/log/mongodb/mongod.log: No such file or directory
As I mentioned in the comment, you could solve the problem by bypassing the gpg signature checks of apt
using : 正如我在评论中提到的,您可以使用以下方法bypassing the gpg signature checks of apt
来解决问题:
sudo apt-get --allow-unauthenticated install -y mongodb-org
You might want to have a look at more configuration options
in detail along with right practices of using this appraoch here : https://askubuntu.com/questions/74345/how-do-i-bypass-ignore-the-gpg-signature-checks-of-apt 您可能希望详细了解更多configuration options
,以及在此处使用此方法的正确做法: https ://askubuntu.com/questions/74345/how-do-i-by-pass-ignore-the-gpg-signature -checks-容易的,
The mongodb docs have a great page on installing the latest mongo on Ubuntu. mongodb文档上有一个很棒的页面,介绍了如何在Ubuntu上安装最新的mongo。 You can find it at: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ 您可以在以下位置找到它: https : //docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
I'd recommend uninstalling mongodb and following the instructions on the previously mentioned page. 我建议卸载mongodb并按照前面提到的页面上的说明进行操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.