Created
December 2, 2020 22:16
-
-
Save dantullis/8eb53fed45642eb8680b3f162f6d7273 to your computer and use it in GitHub Desktop.
Install PM2 on Ubuntu 20.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok