From 44788ddf37c64adb6bc32294182615f6d48212b3 Mon Sep 17 00:00:00 2001 From: haimd Date: Mon, 14 Jun 2021 09:50:07 +0700 Subject: [PATCH] edit pm2 --- monitor/setup/pm2setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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/