135-1821-9792

centos7使用yum安装mongodb

  1. 安装软件:
    yum  -y  install  MongoDB  mongodb-devel  mongodb-server
  2. 修改配置文件:
    vim /etc/mongod.conf
    fork = true
    pidfilepath = /var/run/mongodb/mongod.pid
    logpath = /var/log/mongodb/mongod.log
    unixSocketPrefix = /var/run/mongodb
    dbpath = /var/lib/mongodb
    port=27017
  3. 启动服务:
    systemctl  start  mongod
  4. 连接数据库:
    mongo
  5. 测试:
    centos7使用yum安装mongodb

网页标题:centos7使用yum安装mongodb
分享地址:http://www.wtcwzsj.com/article/ppeepi.html

其他资讯



Copyright © 2009-2022 www.wtcwzsj.com 青羊区广皓图文设计工作室(个体工商户) 版权所有 蜀ICP备19037934号