Skip to content

Instantly share code, notes, and snippets.

@Mitrajit
Last active April 17, 2023 10:53
Show Gist options
  • Save Mitrajit/a75161eafefac6ee8a8011aca7d5e1d1 to your computer and use it in GitHub Desktop.
Save Mitrajit/a75161eafefac6ee8a8011aca7d5e1d1 to your computer and use it in GitHub Desktop.
This script is used to update, install node.js, npm, pm2 and nginx.
echo "updating system"
sudo apt update
echo "Installing node 16.x"
curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\
sudo apt-get install -y nodejs
echo "Installing latest npm"
npm install -g npm@latest
echo "Installing pm2"
npm install pm2 -g
echo "Installing nginx"
sudo apt install -y nginx
echo "Install Net-tools"
sudo api install net-tools
echo "Install certbot"
sudo apt install certbot python3-certbot-nginx
sudo apt update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment