Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

PM2 command not found

#Install PM2 globally:

#run as root:
npm i -g pm2

#or if user is sudo-er
sudo npm i -g pm2

#and then go back to user (or stay in root if it was created by root user) and run it:
pm2 start server.js
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #command
ADD COMMENT
Topic
Name
1+8 =