Skip to content

Instantly share code, notes, and snippets.

@wizardnet972
Last active December 30, 2019 23:26
Show Gist options
  • Select an option

  • Save wizardnet972/79e8a4ee6eda1d88ea67ebd2bfcdcc1c to your computer and use it in GitHub Desktop.

Select an option

Save wizardnet972/79e8a4ee6eda1d88ea67ebd2bfcdcc1c to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "in test"
cd ~
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
nodejs -v
npm -v
sudo apt install build-essential
wget https://gist.githubusercontent.com/wizardnet972/2a31d65a47e93968afb8adfb42a35a60/raw/e05796aaa74df894f79c7f12a12cd923fdc5e0f2/express -O app.js
sudo npm install pm2@latest -g
sudo pm2 start app.js
sudo pm2 startup systemd
sudo apt update
sudo apt install nginx
sudo ufw allow 'Nginx HTTP'
systemctl status nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment