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

后端 未结 6 509
隐瞒了意图╮
隐瞒了意图╮ 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 08:06

    What's are the file permissions on /tmp? Is it possible that they've been changed?

    A

    # ls -ld /tmp
    

    will tell you.

    If you're unsure try:

    # chown root:root /tmp
    # chmod 1777 /tmp
    

    That might fix it.

提交回复
热议问题