Node.js on Ubuntu 24.04 LTS minimal
par ALSOURI LLC
Node.js 22 LTS with PM2 on Ubuntu 24.04 minimal – production runtime with automatic restarts and clustering.
Node.js 22 LTS with PM2 on Ubuntu 24.04 LTS Minimal Server
Node.js 22 LTS with PM2 on Ubuntu 24.04 LTS Minimal Server provides a lightweight Azure VM image with Node.js and PM2 installed. It can be used for running Node.js applications, APIs, backend services, workers, and development or testing workloads.
What Is This Offer?
This offer provides an Ubuntu 24.04 LTS Minimal Server image with Node.js 22 LTS and PM2 installed. It gives users a clean starting point for deploying and managing Node.js applications on Microsoft Azure.
Who Is It For?
- Developers: Deploy and test Node.js applications on Ubuntu.
- IT Administrators: Create a Linux-based Node.js runtime environment on Azure.
- Businesses: Use a preinstalled Node.js and PM2 environment for application hosting and testing.
What Problems Does It Solve?
- Faster Setup: Start with Node.js 22 LTS and PM2 already installed.
- Process Management: Use PM2 to start, stop, restart, and monitor Node.js applications.
- Startup Support: PM2 can be configured to restore saved processes after reboot.
- Flexible Hosting: Run APIs, web applications, workers, and real-time services.
Common Use Cases
- REST APIs and backend services
- Express, Fastify, and NestJS applications
- Background workers and scheduled jobs
- Socket.io and WebSocket applications
- Development, testing, and staging environments
Getting Started
node -v
npm -v
pm2 -v
Create a simple test application:
mkdir myapp && cd myapp
cat > app.js << 'EOF'
const http = require("http");
http.createServer((req, res) => {
res.end("Hello from Node.js on Azure\n");
}).listen(3000);
EOF
pm2 start app.js --name myapp
pm2 save
If your application listens on a public port, configure the Azure Network Security Group and any operating system firewall rules required for your environment.
Important Notes
Users are responsible for deploying their application code, configuring ports, applying updates, securing the server, managing firewall and NSG rules, and configuring production requirements based on their own environment.
Node.js 22 LTS has planned maintenance until April 2027. No software licence fee is charged by this offer. Azure infrastructure charges still apply.