Last active
May 20, 2019 07:54
-
-
Save HarshadRanganathan/b9d3c73669d3c5e5e52dee205a565e97 to your computer and use it in GitHub Desktop.
Install Nginx, Node JS, NPM & GIT in AWS Linux AMI
This file contains hidden or 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
#!/bin/bash | |
# Install updates | |
sudo yum update -y | |
# Add the CentOS 7 EPEL repository if required | |
sudo yum install epel-release -y | |
# Install nginx | |
sudo yum install nginx -y | |
# Start nginx | |
sudo systemctl start nginx | |
# Enable Nginx to start when your system boots | |
sudo systemctl enable nginx | |
# Install node js & npm | |
# Check latest version of NVM to use here - https://github.com/creationix/nvm/releases | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash | |
. ~/.nvm/nvm.sh | |
# Install latest version of node | |
nvm install node | |
# Install git | |
sudo yum install git -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment