I have created replicaset with mongodb which is working as expected after all i have re-install mongo and tried with authentication but it is not working.
mongod.service - SYSV: Mongo is a scalable, document-oriented database.
Loaded: loaded (/etc/rc.d/init.d/mongod; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2017-10-30 15:18:23 PHT; 7s ago
Docs: man:systemd-sysv-generator(8)
Process: 29434 ExecStop=/etc/rc.d/init.d/mongod stop (code=exited, status=0/SUCCESS)
Process: 29492 ExecStart=/etc/rc.d/init.d/mongod start (code=exited, status=1/FAILURE)
Oct 30 15:18:23 localhost.localdomain systemd[1]: Starting SYSV: Mongo is a scalable, document-oriented database....
Oct 30 15:18:23 localhost.localdomain runuser[29499]: pam_unix(runuser:session): session opened for user mongod by (uid=0)
Oct 30 15:18:23 localhost.localdomain runuser[29499]: pam_unix(runuser:session): session closed for user mongod
Oct 30 15:18:23 localhost.localdomain mongod[29492]: Starting mongod: [FAILED]
Oct 30 15:18:23 localhost.localdomain systemd[1]: mongod.service: control process exited, code=exited status=1
Oct 30 15:18:23 localhost.localdomain systemd[1]: Failed to start SYSV: Mongo is a scalable, document-oriented database..
Oct 30 15:18:23 localhost.localdomain systemd[1]: Unit mongod.service entered failed state.
Oct 30 15:18:23 localhost.localdomain systemd[1]: mongod.service failed.