Created
September 25, 2017 22:47
-
-
Save ofstudio/aa33af60987298d63c17c51d7635eaba to your computer and use it in GitHub Desktop.
PM2 initial setup on Ubuntu 16.04
This file contains 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
# Replace USERNAME with user name | |
sudo su -c 'env PATH=\$PATH:/usr/bin pm2 startup ubuntu -u USERNAME --hp /home/USERNAME' | |
sudo env PATH=\$PATH:/usr/bin pm2 logrotate -u USERNAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment