Ask Your Question
0

not able to start mongd service

asked 2015-08-28 09:44:23 -0500

ravindert gravatar image

updated 2015-08-28 10:35:28 -0500

Hi All,

First of all thanks in advance.

I am not able to start the mongod service and getting below error . So please suggest what i have to do to make it working.

[root@controller mongodb(keystone)]# systemctl start mongod
Job for mongod.service failed. See 'systemctl status mongod.service' and 'journalctl -xn' for details.
[root@controller mongodb(keystone)]# systemctl status mongod.service
mongod.service - High-performance, schema-free document-oriented database
   Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled)
   Active: failed (Result: exit-code) since Fri 2015-08-28 14:29:11 EDT; 5s ago
  Process: 5724 ExecStart=/usr/bin/mongod $OPTIONS run (code=exited, status=2)

Aug 28 14:29:11 controller mongod[5724]: Error reading config file: No such file or directory
Aug 28 14:29:11 controller mongod[5724]: try '/usr/bin/mongod --help' for more information
Aug 28 14:29:11 controller systemd[1]: mongod.service: control process exited, code=exited status=2
Aug 28 14:29:11 controller systemd[1]: Failed to start High-performance, schema-free document-oriented database.
Aug 28 14:29:11 controller systemd[1]: Unit mongod.service entered failed state.
[root@controller mongodb(keystone)]#

Following is the configuration setting i have made for mongod.

[root@network ~]# yum --enablerepo=epel -y install mongodb-server mongodb
[2] Configure and Start MongoDB.
[root@network ~]# vi /etc/sysconfig/mongod
# add
OPTIONS="--smallfiles --quiet -f /etc/mongodb.conf"
[root@network ~]# vi /etc/mongod.conf
# line 6: change to the own IP
bind_ip = 10.0.0.50
[root@network ~]# systemctl start mongod 
[root@network ~]# systemctl enable mongod

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-29 03:44:19 -0500

Shaoman Zhang gravatar image

Aug 28 14:29:11 controller mongod[5724]: Error reading config file: No such file or directory

The mongodb config file is error, check whether /etc/mongodb.conf is correct.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-28 09:44:23 -0500

Seen: 4,031 times

Last updated: Aug 29 '15