mongodb yum source install 1:create mongodb.repo cd /etc/yum.repos.d/ If you are running a 64-bit system, use the following configuration: [mongodb] name=MongoDB Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
mongodb yum source install1:create mongodb.repo
cd /etc/yum.repos.d/
If you are running a 64-bit system, use the following configuration:
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
If you are running a 32-bit system which is not recommended
for production deployments, use the following configuration
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/
2:InstallPackages
yum install mongo-10gen mongo-10gen-server
3:start\stop service
1:service mongod start\restart\stop
查看更多关于mongoinstallonlinux(centosredhat)的详细内容...