• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Install PM2 in Plesk.

pdalvi1893

New Pleskian
I have a node js application and I want to run it via PM2. How do I do it. Is there any documentation to support the same. Also if there is any other process manager for Node in Plesk then please help me with it.
 
Hi same problem here, I installed it globally (I had to do it with sudo user). But then impossible to call pm2 command. It is found in `/opt/plesk/node/18/bin/pm2` but since I do `/opt/plesk/node/18/bin/pm2 status ` I have the error message: `usr/bin/env: ‘node’: No such file or directory`

Pm2 if far better than passenger to handle nodejs processes. Also it allow real time logs which is very useful to debug in ssh (`pm2 logs` or `pm2 logs my-process`)
 
I managed to install it! It's very different for debian than for ubuntu.

I had to do `sudo su` command before all and being the admin user in the debian server
Then
Code:
apt update && apt install sudo curl && curl -sL https://raw.githubusercontent.com/Unitech/pm2/master/packager/setup.deb.sh | sudo -E bash -
which is what was recommanded here => PM2 - Installation | Guide | PM2 Documentation
Then I needed logout and in again, the `pm2` command was available systemwise :cool:
 
Back
Top