错误

  • Failed to open /var/log/mongodb/mongod.log
  • 原因日志没有写入权限
#解决
chmod 777 /var/log/mongodb/mongod.log

#重启

Error during global initialization