not able to start mongd service
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