Commands and concepts
# list all process pm2 ls # restart process pm2 restart 'id' # empty current activity logs pm2 flush
pm2 logs | grep -i "KEYWORD"
pm2 install pm2-logrotate # NOTE: the command is pm2 install NOT npm install