Last active
March 6, 2021 13:36
-
-
Save cornflourblue/91fe14bf4803f92eef662d7ded89e916 to your computer and use it in GitHub Desktop.
Install PM2 on Ubuntu 18.04 - http://jasonwatmore.com/post/2018/09/26/setup-nodejs-mongodb-production-server-on-ubuntu-1804
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 " | |
---------------------- | |
PM2 | |
---------------------- | |
" | |
# install pm2 with npm | |
sudo npm install -g pm2 | |
# 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