Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

start stop restart pm2

pm2 start app.js --name "my-api"
pm2 start web.js --name "web-interface"

pm2 stop web-interface

pm3 restart web-interface
Comment

pm2 restart

pm2 start app.js 
pm2 start index.js 

pm2 stop index ==> name of your instance

pm2 restart index
Comment

start stop restart pm2

pm2 start app.js --name "my-api"
pm2 start web.js --name "web-interface"

pm2 stop web-interface

pm3 restart web-interface
Comment

pm2 restart

pm2 start app.js 
pm2 start index.js 

pm2 stop index ==> name of your instance

pm2 restart index
Comment

PREVIOUS NEXT
Code Example
Shell :: setting up path in zsh 
Shell :: gitignore exclude folder 
Shell :: -u flag in git command 
Shell :: centos curl command 
Shell :: bash iterate over a variable range of numbers 
Shell :: find number of files in a directory linux 
Shell :: angular reduce vendor.js size 
Shell :: install composer in ubuntu 
Shell :: install brew mac 
Shell :: git add current directory 
Shell :: This is a GitLab CI configuration to build the project as a docker image 
Shell :: setup linux and chrome docker 
Shell :: bash find file 
Shell :: remove all files in a directory linux 
Shell :: Comandos Útiles Docker 
Shell :: repo from bitbucket to github 
Shell :: sed up to first match 
Shell :: particular screenshot in ubuntu 
Shell :: concat strings inside array bash script 
Shell :: know committed files by author 
Shell :: how to create docker secret in kubernetes 
Shell :: sed from match to other match 
Shell :: linux service .net app 
Shell :: unity progrids git url 
Shell :: make tar.gz 
Shell :: git remove vendor folder from remote 
Shell :: microk8s enable dns 
Shell :: git pull on branch 
Shell :: kde vs gnome 
Shell :: zsh in Mac OS 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =