且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MongoDB - 套接字权限被拒绝:/tmp/mongodb-27017.sock

更新时间:2022-01-05 10:05:34

/tmp 上的文件权限是什么?有没有可能改了?

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

A

# ls -ld /tmp

会告诉你.

如果您不确定,请尝试:

If you're unsure try:

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

那可能会解决它.