Skip to content

Instantly share code, notes, and snippets.

@dantullis
Created December 2, 2020 22:16
Show Gist options
  • Save dantullis/8eb53fed45642eb8680b3f162f6d7273 to your computer and use it in GitHub Desktop.
Save dantullis/8eb53fed45642eb8680b3f162f6d7273 to your computer and use it in GitHub Desktop.
Install PM2 on Ubuntu 20.04
#!/usr/bin/env bash
echo "
--------------------------------
Installing PM2 on Ubuntu 20.04
--------------------------------
"
# To run:
# curl <raw URL>/install-pm2-ubuntu-20-04.sh | sudo bash
# From:
# https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-20-04
# install pm2 with npm
sudo npm install pm2 -g
# set pm2 to start automatically on system startup
sudo pm2 startup systemd
@stuxnet0208
Copy link

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment