• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

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