Centos sets mongodb to boot

  mongodb, question

It was installed on AriyunCentOs7Mongodb version2.4.9

Installed in/usr/local/mongodb/under

There is no problem in starting manually.

In/etc/rc.d/rc.localAdded in

/usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/db --logpath=/usr/local/mongodb/logs/mongodb.log

Is it related to IP?

I remember that there is no problem with this setup, solve it

Just got it yesterday, it’s probably sudo service mongo xxx, please check the official documents.