1

I have installed mongodb in Centos 6.5. The mongodb folder is in

 /usr/mongodb/.

But when I run "service mongod start", it shows error:

The mongod service is unrecognized.

But if we enter run "/user/mongodb/bin/mongod", the service starts and works fine. Please suggest a solution.

chridam
  • 100,957
  • 23
  • 236
  • 235

1 Answers1

2

mongodb is the core app, but the service is not included in this. the mongod service is actually part of the mongodb-server installation. Forgot all about CO6.5, but in CO7, you need to

yum install mongodb mongodb-server

Before you can start the mongod service.