Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

171
Vistas
MongoDB is not registering as service in services.msc

I have tried to install and uninstall 3-4 times to identify my problems. Every time after successful installation of mongoDB, it stops service and gets me an error when I try to connect from the local server[connect ECONNREFUSED 127.0.0.1:27017] and I get a message from windows windows security alerts after this setting, MongoDB is removed from services.msc. I have checked both options one by one and also checked both of these from the control panel but still every time my problem is same.

Update: I have tried to set path also as variable.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The .msi does not work so well. Better create a config file like this

# Where and how to store data.
storage:
  dbPath: C:\MongoDB\data\mongod

# where to write logging data.
systemLog:
  destination: file
  logAppend: true
  path:  C:\MongoDB\log\mongod.log

# network interfaces
net:
  port: 27017
  bindIpAll: true

processManagement:
  windowsService:
    serviceName: MongoDB
    displayName: MongoDB
    description: MongoDB Server - Standalone DB

security:
  authorization: enabled

and then install the service like this

mongod.exe --config "c:\MongoDB\config\mongod.cfg" --install

You need to run this command as Administrator. Then the service should start automatically at boot time.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda