1

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

エラー概要

4

1 に答える 1

1

MongoDB 2.0.6の10gen パッケージが既にインストールされているようです。競合は、同じ名前のバイナリを含むデフォルトの Fedora パッケージ バージョンの MongoDB (エラー メッセージの 2.0.2) もインストールしようとすることによって発生します。

再インストールする代わりに、MongoDB サービスを root として、または sudo を使用して開始できるはずです。

service mongod start

10gen のパッケージ インストールでは、次のファイルが見つかります。

  • /etc/mongod.conf構成オプションの変更用
  • デフォルトのデータ ディレクトリ:/var/lib/mongo
  • デフォルトのログ ファイル ディレクトリ:/var/log/mongo
  • 次の init スクリプト:/etc/rc.d/init.d/mongod
于 2012-07-22T08:57:43.090 に答える