Last active
April 17, 2023 10:53
-
-
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.
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
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