mongodb - "dirname: missing operand" error while starting mongod service -


I recently installed the Mojo 2.6.5 version on our Red Hat Enterprise Linux server. Everything was working fine, till I decided to change the /etc/mongod.conf file. I have seen that above version 2.6 supports the config file in the Mongo YAML format. (The reason I wanted to make changes, I wanted to enable authentication on the Mongo example)

I changed my config file which looked like the bottom (I added I'm just a part of the config):

  # mongod.conf # where logp = / var / log / mongodb / mongod.log Log in = True # fork and background ink fork = true # port = 27017 dbpath = / var / lib / mongo # pidfile pidfilepath location = / var / run / mongodb / mongod.pid  

My changed file mongod.conf Il now looks below:

  systemlog: destination: file path: "/var/log/mongodb/mongodb.log" LogAppend: true storage: DbPath: "/ var / lib / mongo" Journal: Enabled: Correct process management: pidFilePath: "/var/run/mongodb/mongod.pid" Fork: Real Security: Authorization: True! [Enter the image details here] [1]  

Now when I try to run the Mongode service it is giving me an error (see attached pictures): dirname: missing operand More info Try 'dirname --help' to start mongod: [FAILED]

When I return my mongod.conf file to the previous version, the service runs fine Do I need to install your own There is a need to make some changes in it so that it can be configured with YAMP PV Form to be used?

Make certain that you define the PID file location in /etc/mongod.conf

daemon - user "$ MONGO_USER" - check "$ mongod" --pid file "$ PIDFILE" "$ NUMACTL $ Mandriva $ option & gt; / dev / null 2 ​​& gt; & amp; 1"

  • Your DBPath

  • Comments