Skip to content

Tag: mongodb

mongodb wrong members id

I’m trying to change the priority of the members of the replica set: cfg = rs.conf(); output: } cfg.members[5].priority = 0.5 cfg.members[4].priority = 0.5 but id:3 change normaly: cfg.members[3].priority = 0.5 what am I doing wrong? And why my version of the config too big? So many times that I couldn&…

update mongo 2.4 to 2.6

I want to upgrade my mongodb to 3.2, but when I try to upgrade to 2.6 I already get error What I do: I have a test VM with restored dump database from production sever. I download mongodb 2.6 and extracted. I run mongo from /tmp/mongodb-linux-x86_64-2.6.11/bin/mongo In console mongodb run use admin db.upgrade…

Allow MongoDB remote access for specific IP

I have an application server with some PHP code on it which needs to access a distant MongoDB server. In order to do this I want to allow remote access on my MongoDB server, but only for the application server IP. I understand that I need to change the bind_ip value located in /etc/mongodb.conf in order to do…

Cannot start mongodb service

I tried to start mongodb service from root user and it fails on the error that it cannot open file j._8, I checked the permissions as well. This was working fine before. This is the journal folder. I cannot open the file j._8 with cat or less as root. Please help to fix this. Thanks in advance Answer solved t…

How do I know if MongoDB needs more CPU/RAM? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …

Mongodb connection in PHP not working

I am using Ubuntu 12.04 LTS and installed pecl in /opt/lampp/bin/ . When installing second time its throwing error – Command run previously – pecl install mongo pecl/mongo is already installed and is the same as the released version 1.5.1 install failed Now when I am Checking by – echo exten…