Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

364
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!