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

370
Visualizações
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 Respostas
Responde à pergunta

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