mongo centos 安裝

方健發表於2014-10-10

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/
Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux
Create a /etc/yum.repos.d/mongodb.repo file

[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1

sudo yum install -y mongodb-org
sudo service mongod start
sudo chkconfig mongod on

vim /etc/mongod.conf

# Listen to local interface only. Comment out to listen on all interfaces. 
#bind_ip=127.0.0.1 

相關文章