...
If there is a mongod.pid file in /var/run/mongodb, then remove it.If there is a
Delete the contents of /data/mongodb and verify the group and owner of /data/
...
mongodb is mongod.
Code Block |
---|
[root@opmantek ~]# cd /data/mongodb [root@opmantek mongodb]# chown -R mongod:mongod /data/mongodb/ rm -rf * [root@opmantek mongodb]# cd .. [root@opmantek data]# ls -l | grep mongodb drwxr-xr-x 2 mongod mongod 4096 2017-04-05 17:42 mongodb |
Start MongoDB Service
...