mongodb Failed to set up listener: SocketException: Permission denied
警告
本文最后更新于 2020-05-31 16:54,文中内容可能已过时。
tmp目录没有权限导致
使用mongodb参数–nounixsocket
mongod --config /etc/mongod.conf --nounixsocket --fork
或者修改tmp目录权限
如果无法修改,可以尝试chattr -i /tmp
请我喝杯水


tmp目录没有权限导致
使用mongodb参数–nounixsocket
mongod --config /etc/mongod.conf --nounixsocket --fork
或者修改tmp目录权限
如果无法修改,可以尝试chattr -i /tmp