MongoDB服务器问题,(anon):1137exception连接失败
我最近在Ubuntu上安装了MongoDB服务器。 这是工作,我也使用PHP的ID,但是,我不知道为什么开始失败。 这是我第一次使用mongodb,所以我有点迷路。 实际上,当试图通过PHP或通过shell访问mongo时: root@ubuntu:~# /etc/init.d/mongodb restart Rather than invoking init scripts through /etc/init.d, use the service(8) utility, eg service mongodb restart Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the stop(8) and then start(8) utilities, eg stop mongodb ; start mongodb. The restart(8) […]