I added a user (adam) first, then edited the /etc/nf file to uncomment the auth = true line. I just tested this with a fresh Debian 7 install, and a fresh install of MongoDB. I probably broke something during my initial install/configuration. Update: I reinstalled Debian/Mongo and was able to use service mongod start with auth = true in conf file. Setting up mongodb via upstart - how to pass options?.Strange behaviour starting process with init script.Read all documentation and related posts, nobody seemed to have a working solution to get auth support with service mongod start The fork works, but this doesn't use the init script: mongod -fork -auth -logpath /var/log/mongod.log The non-daemon method properly starts the process with the -auth flag: mongod -auth I'm working with two files: /etc/init.d/mongod (for init) and /etc/nf (for config). I have also added db users to the database to authenticate. I want to start the MongoDB daemon with auth support using the Mongo init script: sudo /etc/init.d/mongod start
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |