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

367
Vistas
node project run on AWS EC2 instance with PM2

i have setup the node project on the AWS EC@ instance.

npm start

is working. then project running on the 3000 port. but it will closing when close the terminal. then i have tried PM2.but when run using PM2 its not working. but status showing as online.

enter image description here

these are the command used to run PM2,

npm install pm2 -g
pm2 start app.js
pm2 startup
pm2 save

why is that ? how can i run it?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

have you tried pm2 logs?

Also, you can set the project for default like whenever you want to run your server you can simply run by using the pm2 logs command, to set up your server here is the command

Go to your source folder or where your app.js file is stored, and then run this command

pm2 start npm --name "Your Project Name" -- run start

After setting up by this, you can always run your server with pm2 logs command

Thanks

over 4 years ago · Santiago Trujillo 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