Primary Content Reference: " 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.
The Tutorial: Install MongoDB on a virtual machine running CentOS Linux in Windows Azure
Is an easy follow until you reach
The Section: Install and run MongoDB on the virtual machine
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
. Can someone please respond with a ELI5 format?
Related Resources: " 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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.