Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 495 Bytes

README.md

File metadata and controls

31 lines (29 loc) · 495 Bytes

Quick Setup Script

  1. Install dependencies
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -;
sudo apt-get install -y nodejs;
npm install pm2 -g;
pm2 install pm2-logrotate;
git clone https://github.com/apeboard/monitor.git;
npm install -C ./monitor;
  1. Add pm2.json
nano pm2.json;
{
  "apps": [
    {
      "name": "monitor",
      "cwd": "./monitor",
      "script": "npm start"
    }
  ]
}
  1. Start pm2 service
pm2 start pm2.json;