Open phymo opened 2 years ago
pm2 startup
to create systemd service.# edit pm2-user.service,
+ExecStart=/usr/bin/authbind --deep /home/deploy/.nvm/versions/node/v8.9.0/lib/node_modules/pm2/bin/pm2 resurrect
+ExecReload=/usr/bin/authbind --deep /home/deploy/.nvm/versions/node/v8.9.0/lib/node_modules/pm2/bin/pm2 reload all
+ExecStop=/usr/bin/authbind --deep /home/deploy/.nvm/versions/node/v8.9.0/lib/node_modules/pm2/bin/pm2 kill
-ExecStart=/home/deploy/.nvm/versions/node/v8.9.0/lib/node_modules/pm2/bin/pm2 resurrect
-ExecReload=/home/deploy/.nvm/versions/node/v8.9.0/lib/node_modules/pm2/bin/pm2 reload all
-ExecStop=/home/deploy/.nvm/versions/node/v8.9.0/lib/node_modules/pm2/bin/pm2 kill
sudo systemctl daemon-reload
sudo systemctl enable pm2-user.service
sudo /sbin/reboot
wget https://s3.amazonaws.com/aaronsilber/public/authbind-2.1.1-0.1.x86_64.rpm
sudo rpm -Uvh authbind-2.1.1-0.1.x86_64.rpm
alias pm2='authbind --deep pm2'
, then runsource ~/.bashrc