Skip to content

Instantly share code, notes, and snippets.

@HarshadRanganathan
Last active May 20, 2019 07:54
Show Gist options
  • Save HarshadRanganathan/b9d3c73669d3c5e5e52dee205a565e97 to your computer and use it in GitHub Desktop.
Save HarshadRanganathan/b9d3c73669d3c5e5e52dee205a565e97 to your computer and use it in GitHub Desktop.
Install Nginx, Node JS, NPM & GIT in AWS Linux AMI
#!/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