Contents
How do I run node js server on Linux?
How To Deploy A Node. js Application On Linux Server?
- Prerequisites.
- Updating the System Packages.
- Installing Node. js.
- Creating a Node. js Application.
- Create a Systemd File to Manage the Node. js Application.
- Configure Nginx as a Reverse Proxy.
- Verify the Application.
How do I start node in Linux?
NodeJS Installation Steps
- $ sudo apt-get install -y nodejs.
- $ nodejs -v.
- $ sudo npm install npm –global.
- $ npm -v.
- $ mkdir nodejsapp. $ cd nodejsapp. $ nano firstapp. js.
- console. log(‘First NodeJS Application’);
- $ nodejs firstapp. js.
- $ chmod +x firstapp. js.