Skip to content

Instantly share code, notes, and snippets.

@cornflourblue
Last active March 6, 2021 13:36
Show Gist options
  • Save cornflourblue/91fe14bf4803f92eef662d7ded89e916 to your computer and use it in GitHub Desktop.
Save cornflourblue/91fe14bf4803f92eef662d7ded89e916 to your computer and use it in GitHub Desktop.
#!/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