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

299
Visualizações
How do I know which MongoDB version is installed by using the Command Line?

Without changing directory to \MongoDB\bin\, when I call:

mongod -v

I get:

'mongod' is not recognized as an internal or external command, operable
program or batch file.

When I call the same command from \bin\ it launches the server just like I'm calling:

mongod

It is the same case with 'mongo' and 'mongos'.

I added the \bin\ path to the environment variables thinking it will help but it didn't.

To clarify with an example, to get the version of Ruby, I can call:

ruby -v

Why can't I do the same with MongoDB?

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

0

First add location of MongoDB's bin folder to PATH env variable. This is required because it is the place where mongod.exe is stored. For example, if MongoDB 4.0 is in your Program Files, add "C:\Program Files\MongoDB\Server\4.0\bin" to PATH for all system users. Then try using :

mongod --version
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