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

191
Views
How to stop a NodeJs file on Ubuntu server

I paid someone to install a Js script on my server but when i tried making some changes on scripts/files i just couldnt see the changes on browser while browsing and googling for like 24 hours i figured out that js scripts should be restarted in order to show the result on browser and i figured out that in order to start a node js file i should type in terminal

node /dir/example.js

but can someone help me how to refresh/restart it Iam stuck here like 24 hours please help

I just want to let you know too that iam using Putty software in order to connect to the ubuntu server, ubuntu version is 20.04

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

EDIT: you will need an ssh connection to your server with access to a terminal..

Your node.js scripts, if they are on a server, should typically be ran using a process manager such as pm2.

Try to type pm2 list in a terminal. If you see some information you have hit the spot. Just after that run pm2 restart id. id being the number of your process and your changes should be visible.

You can just try this or try your luck with other process managers that run on your server providers. Just read what your server provider recommends for default and usually your previous developer would have used it.

about 4 years ago · Juan Pablo Isaza 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!