mongodb on OSX : how to update brew service to start with auth?

╄→гoц情女王★ 提交于 2020-01-04 05:44:27

问题


I installed mongodb with homebrew. I added an admin , and I updated the /usr/local/etc/mongod.conf to enable the security authorisation.

I can start mongod with auth:

mongod --auth --port 27017 --dbpath   /usr/local/var/mongodb

But starting service :

brew services start mongodb

does not start with auth ...

how can I do it ?

thanks !!

来源:https://stackoverflow.com/questions/41664476/mongodb-on-osx-how-to-update-brew-service-to-start-with-auth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!