Categories
JavaScript Answers

How to restart a Node.js server?

Spread the love

To restart a Node.js server, we use the pkill command.

For instance, we run

pkill -HUP node

to kill all Node.js processes with pkill.

Then we start node again.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *