I started a replica set with three servers with default port and used a different data directory. But when i did sudo service mongod stop. it said failed. so i went into mongo shell and did a shutdown and mongo shell stopped working. now when i did sudo service mongod start it said failed but i was able to go to mongo shell and the reolica set was working. I checked sudo service mongod status it said failed.
sudo service mongod status [FAIL] Checking status of database: mongod apparently not running failed!
i edited mongod.config to have a replica set name , commented out bind_ip, used keyfile for auth. i was working fine before starting a replica set
mongo version 2.6.5.
installed using instructions from http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/
The output of
ps ax | grep [m]ongo is:
/usr/bin/mongod --config /etc/mongod.conf