我在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
答案 0 :(得分:1)
看起来您已经为MongoDB 2.0.6安装了10gen packages。这些冲突是由于尝试安装默认的Fedora打包版本的MongoDB(来自您的错误消息的2.0.2)引起的,其中包含同名的二进制文件。
您应该能够以root身份{@ 3}}或使用sudo而不是重新安装,而不是重新安装:
service mongod start
使用10gen打包安装,您应该找到:
/etc/mongod.conf
用于更改配置选项/var/lib/mongo
/var/log/mongo
/etc/rc.d/init.d/mongod