Skip to content
Open console

Node.js 24

This image provides a clean Ubuntu 24.04 environment with Node.js 24 LTS and PM2 pre-installed. It is designed for deploying Node.js applications that need to run persistently as a managed process.

ComponentVersion
Node.js24.x (LTS)
npmBundled with Node.js
PM2Latest stable
Ubuntu24.04 LTS
ssh ubuntu@<your-vm-ip>

There is no first-boot configuration. Node.js and PM2 are ready immediately.

node --version
npm --version
pm2 --version

Upload your application files to the VM, then start your app with PM2:

# Start your app
pm2 start app.js --name my-app
# Save the process list so it survives reboots
pm2 save
pm2 startup

Run the command that pm2 startup outputs to register PM2 with systemd.

# List running processes
pm2 list
# View logs
pm2 logs my-app
# Restart
pm2 restart my-app
# Stop
pm2 stop my-app
# Delete from PM2
pm2 delete my-app

No application ports are open by default. UFW is enabled and allows SSH (port 22) only.

To allow traffic on your application’s port:

sudo ufw allow <your-app-port>/tcp

For a web application, consider placing it behind Nginx or Caddy as a reverse proxy so you can serve HTTPS on port 443 and proxy requests to your Node.js app internally.

Ask the ZCP docs

Type a question and pick an assistant. The assistant opens in a new tab and reads this page and the full ZCP documentation, so its answer comes from our docs.

Example questions

Ask with

Your question goes to the assistant you pick, under its own terms.