diff --git a/monitor/setup/pm2setup.sh b/monitor/setup/pm2setup.sh index 5925e4c..0105b7c 100644 --- a/monitor/setup/pm2setup.sh +++ b/monitor/setup/pm2setup.sh @@ -30,7 +30,9 @@ echo "nameserver 8.8.8.8" > /etc/resolv.conf exit 0' > /etc/rc.local # Cai dat PM2 run Server lite sudo apt install npm -npm install pm2 -g +npm cache clean -f +npm install pm2 -g n +sudo n stable pm2 install pm2-logrotate cd /root/monitor/setup/