>  기사  >  데이터 베이스  >  mongo install on linux(centosredhat)

mongo install on linux(centosredhat)

WBOY
WBOY원래의
2016-06-07 15:21:581056검색

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 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/

gpgcheck=0

enabled=1

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/

gpgcheck=0

enabled=1

2:InstallPackages

  yum install mongo-10gen mongo-10gen-server

3:start\stop service

          1:service mongod start\restart\stop

          2: 或是进入安装目录下的bin目录 执行 服务端 ./mongod --datapath /adkfw  --port 27017 客户端 : ./mongo localhost:27017

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.