[英]Install MongoDB on a virtual machine running CentOS Linux in Windows Azure
Primary Content Reference: " http://www.windowsazure.com/en-us/documentation/articles/store-mongodb-virtual-machines-linux-install-centos/ " 主要内容参考:“ http://www.windowsazure.com/en-us/documentation/articles/store-mongodb-virtual-machines-linux-install-centos/ ”
Beginner at linux cmd and MongoDB on Virtual Machines here. 此处是Linux cmd和Virtual Machines上的MongoDB的初学者。
The Tutorial: Install MongoDB on a virtual machine running CentOS Linux in Windows Azure 教程:在Windows Azure中运行CentOS Linux的虚拟机上安装MongoDB
Is an easy follow until you reach 轻松跟踪,直到您到达
The Section: Install and run MongoDB on the virtual machine 本节:在虚拟机上安装和运行MongoDB
As someone use to using a x64 Win8 OS I am completely lost on how I am suppose to bypass the permission denial that won't allow me to touch 10gen.repo
or sudo yum install mongo-10gen mongo-10gen-server
. 当有人习惯使用x64 Win8 OS时,我完全迷失了如何绕过不允许我touch 10gen.repo
或sudo yum install mongo-10gen mongo-10gen-server
的权限拒绝。 Can someone please respond with a ELI5 format? 有人可以用ELI5格式回复吗?
Related Resources: " https://unix.stackexchange.com/questions/104916/how-do-you-configure-package-management-system-yum-for-mongodb " 相关资源:“ https://unix.stackexchange.com/questions/104916/how-do-you-configure-package-management-system-yum-for-mongodb ”
You need to create the repository file with sudo as well. 您还需要使用sudo创建存储库文件。
Try this: 尝试这个:
$ echo "[MongoDB]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
enabled=1" | sudo tee -a /etc/yum.repos.d/10gen.repo
$ sudo yum update
And then: 接着:
sudo yum install mongo-10gen mongo-10gen-server
Hope it helps 希望能帮助到你
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.