Details
-
Question
-
Resolution: Incomplete
-
Major - P3
-
None
-
3.2.10
-
None
-
Build 2016-11-21
Description
Hello all,
My mongodb version is 3.2.10, was installed on Centos 7 Minimal
When i enable security authentication by add these line to /etc/mongo.conf
security:
authorization: enabled
After that mongodb failed to startup by : service mongod start . With error code
● mongod.service - SYSV: Mongo is a scalable, document-oriented database.
|
Loaded: loaded (/etc/rc.d/init.d/mongod)
|
Active: failed (Result: exit-code) since Sat 2016-11-05 10:48:57 ICT; 11s ago
|
Docs: man:systemd-sysv-generator(8)
|
Process: 7446 ExecStop=/etc/rc.d/init.d/mongod stop (code=exited, status=0/SUCCESS)
|
Process: 7778 ExecStart=/etc/rc.d/init.d/mongod start (code=exited, status=1/FAILURE)
|
|
|
Nov 05 10:48:57 db1 systemd[1]: Starting SYSV: Mongo is a scalable, document-oriented database....
|
Nov 05 10:48:57 db1 mongod[7778]: Error starting mongod. /var/run/mongodb/mongod.pid exists.
|
Nov 05 10:48:57 db1 systemd[1]: mongod.service: control process exited, code=exited status=1
|
Nov 05 10:48:57 db1 systemd[1]: Failed to start SYSV: Mongo is a scalable, document-oriented database..
|
Nov 05 10:48:57 db1 systemd[1]: Unit mongod.service entered failed state.
|
Nov 05 10:48:57 db1 systemd[1]: mongod.service failed.
|
But i can startup mongodb by command: mongod -f /etc/mongod.conf
with no error
Please help
Thanks