How to Install PM2 on Ubuntu 26.04

To install PM2 on Ubuntu 26.04, use npm and a small Node app (install Node.js first).

Step 1 : Install PM2.

Step 2 : Create a test app.

Step 3 : Start it.

Step 4 : Check status.

Step 5 : Allow the app port.

Step 6 : Open the app by server IP in a browser.

Step 7 : Enable startup on boot. Run the sudo env PATH=... command that PM2 prints.

Step 8 : Save the process list.

You have installed PM2 on Ubuntu 26.04.