If you have created a startup script using the 'pm2 startup ubuntu' and 'pm2 save' combo, there will be a file located here $PM2_HOME/.pm2/dump.pm2. Delete this file.
kill all pm2 processes and delete them:
pm2 stop all
pm2 delete all
then restart the server:
sudo shutdown -r now
Next, remove pm2 using npm:
npm uninstall pm2 -g (Uninstall docs)
No comments:
Post a Comment