MongoDB - Permission denied for socket: /tmp/mongodb-27017.sock

后端 未结 6 508
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 07:41

I had an unclean shutdown of MongoDB on Ubuntu 10.04 LTS. Now when I login as root and run Mongodb via service mongodb start, I get below error-

Mon Dec 12          


        
6条回答
  •  孤街浪徒
    2020-12-03 07:53

    we use mac and install mongodb, usually do not need mongodb.conf, so, try this:

    sudo chown -R your-username /tmp/
    

    ps:your-username is your username in mac os, not root.if you don't know what is your username,there's a command:

    whoami
    

提交回复
热议问题