Problemas com o servidor MongoDB, (anon): 1137 exceção de conexão falhou

1

Eu instalei recentemente o servidor MongoDB no Ubuntu. Ele estava funcionando e eu uso id do PHP também, mas eu não sei porque começou a falhar. É a primeira vez que uso o mongodb, então estou um pouco perdido.

Na verdade, ao tentar acessar via PHP ou via shell ao mongo:

root@ubuntu:~# /etc/init.d/mongodb restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. 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,
e.g. stop mongodb ; start mongodb. The restart(8) utility is also available.
mongodb start/running, process 7223
root@ubuntu:~#

root@ubuntu:~# mongo
MongoDB shell version: 1.6.3
Wed Sep  7 10:20:35 *** warning: spider monkey build without utf8 support.  consider rebuilding with utf8 support
connecting to: test
Wed Sep  7 10:20:35 Error: couldn't connect to server 127.0.0.1 (anon):1137
exception: connect failed
root@ubuntu:~#

A primeira vez que usei o erro do macaco-aranha não estava lá. E funcionou. Eu tentei reinstalar e nada.

Como posso resolver isso?

Obrigado antecipadamente! Qualquer informação que eu possa adicionar, me avise, por favor.

    
por udexter 07.09.2011 / 19:39

1 resposta

1

Como foi dito, tente isto:

# start mongodb

Veja também Upstart - um substituto baseado em evento para o init do SysV.

    
por 08.09.2011 / 04:59

Tags