Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.6K
Visualizações
how to restart mongodb in terminal?

I installed mongodb in VS code by npm install mongodb. And again I downloaded mongodb from official website and installed it as a windows service since I don't know if installing in vscode with npm is enough. It worked for a while.

and now it doesn't work as my database connection with mongoose fails and nothing is running in 27017 port in localhost. Seems like server stopped.

how to restart mongodb server? what's the CLI/terminal command etc for that?

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

On debian/ubuntu

sudo service mongod restart

over 4 years ago · Santiago Trujillo Relatório

0

Mongodb Services

Go to services via start button and check for the MongoDB services shown in below pic. And rest steps you can follow which @apoorva has mentioned.

over 4 years ago · Santiago Trujillo Relatório

0

If You Installed MongoDB as a Windows Service The MongoDB service is started upon successful installation.(please check on the below path)

To begin using MongoDB, connect a mongo.exe shell to the running MongoDB instance. Either:

From Windows Explorer/File Explorer, go to C:\Program Files\MongoDB\Server\4.4\bin\ directory and double-click on mongo.exe.

Or, open a Command Interpreter with Administrative privileges and run:

"C:\Program Files\MongoDB\Server\4.4\bin\mongo.exe"

for more details check. : https://treehouse.github.io/installation-guides/windows/mongo-windows.html

Also, you first need to start the mongodb daemon for your connections to listen then you should connect using mongoose.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda