【问题标题】:Fedora MongoDB issue InstallingFedora MongoDB 问题安装
【发布时间】:2012-07-22 04:27:54
【问题描述】:

我在 fedora 17 上安装了 mongoDB,但服务器没有运行。

我在这篇帖子MongoDB service not running in Fedora 中遇到了同样的错误,然后尝试放弃这条指令,我又遇到了另一个错误

尝试这样做

 yum --disablerepo=* --enablerepo=fedora,updates install mongodb mongodb-server 

I got this Error
    Transaction Check Error:
  file /usr/bin/bsondump from install of mongodb-2.0.2-10.fc17.x86_64 conflicts with       file from package mongo-10gen-2.0.6-mongodb_1.x86_64

  file /usr/bin/mongo from install of mongodb-2.0.2-10.fc17.x86_64 conflicts with file from package mongo-10gen-2.0.6-mongodb_1.x86_64

  file /usr/bin/mongodump from install of mongodb-2.0.2-10.fc17.x86_64 conflicts with file from package mongo-10gen-2.0.6-mongodb_1.x86_64

  file /usr/bin/mongoexport from install of mongodb-2.0.2-10.fc17.x86_64 conflicts with file from package mongo-10gen-2.0.6-mongodb_1.x86_64

  file /usr/bin/mongofiles from install of mongodb-2.0.2-10.fc17.x86_64 conflicts with file from package mongo-10gen-2.0.6-mongodb_1.x86_64

  file /usr/bin/mongoimport from install of mongodb-2.0.2-10.fc17.x86_64 conflicts with file from package mongo-10gen-2.0.6-mongodb_1.x86_64

安装 mongodb-2.0.2-10.fc17.x86_64 中的文件 /usr/bin/mongorestore 与包 mongo-10gen-2.0.6-mongodb_1.x86_64 中的文件冲突

  file /usr/bin/mongostat from install of mongodb-2.0.2-10.fc17.x86_64 conflicts with file from package mongo-10gen-2.0.6-mongodb_1.x86_64

  file /usr/bin/mongotop from install of mongodb-2.0.2-10.fc17.x86_64 conflicts with file from package mongo-10gen-2.0.6-mongodb_1.x86_64

安装 mongodb-server-2.0.2-10.fc17.x86_64 中的文件 /etc/sysconfig/mongod 与包 mongo-10gen-server-2.0.6-mongodb_1.x86_64 中的文件冲突

  file /usr/bin/mongod from install of mongodb-server-2.0.2-10.fc17.x86_64 conflicts with file from package mongo-10gen-server-2.0.6-mongodb_1.x86_64

  file /usr/bin/mongos from install of mongodb-server-2.0.2-10.fc17.x86_64 conflicts with file from package mongo-10gen-server-2.0.6-mongodb_1.x86_64

错误总结

【问题讨论】:

    标签: mongodb service fedora


    【解决方案1】:

    看起来您已经为 MongoDB 2.0.6 安装了 10gen packages。冲突是由于尝试同时安装包含同名二进制文件的默认 Fedora 打包版本的 MongoDB(错误消息中的 2.0.2)引起的。

    您应该能够start the MongoDB service 以 root 身份或使用 sudo 来代替重新安装:

    service mongod start
    

    使用 10gen 打包安装,您应该会发现:

    • /etc/mongod.conf 用于更改配置选项
    • 默认数据目录:/var/lib/mongo
    • 默认日志文件目录:/var/log/mongo
    • 初始化脚本位于:/etc/rc.d/init.d/mongod

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-05-06
      • 2016-06-10
      • 2013-06-12
      • 1970-01-01
      • 2011-11-13
      • 1970-01-01
      • 2020-09-24
      • 2019-09-15
      相关资源
      最近更新 更多