Skip to content

Instantly share code, notes, and snippets.

@felipekm
Last active July 22, 2020 19:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipekm/8130718ee1f08bf33862c7f707bc5101 to your computer and use it in GitHub Desktop.
Save felipekm/8130718ee1f08bf33862c7f707bc5101 to your computer and use it in GitHub Desktop.
RHEL NodeJS Server Pre Config
# NGINX | GIT
sudo yum install -y nginx git
# Install the current version of node version manager (nvm) by typing the following at the command line to install version 33.6
# currently using v0.35.2
curl -o- https://raw.githubusercontent.com/creationix/nvm/{VERSION}/install.sh | bash
# Activate nvm by typing the following at the command line.
. ~/.nvm/nvm.sh
# Creates a symlink from node
# currently using v12.14.1
sudo ln -s $(which node) /usr/bin/node
sudo ln -s $(which npm) /usr/bin/npm
# Set timezone
ln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
# C++ - RHEL
sudo yum install -y gcc-c++ make
# C++ - Ubuntu
sudo apt install g++ -y
sudo apt install build-essential
# PM2
npm install pm2 -g
sudo ln -s $(which pm2) /usr/bin/pm2
# Ruby
sudo apt-get install ruby
# Code Deploy - Ubuntu
sudo apt-get update -y
sudo apt-get install awscli -y
# Code Deploy - RHEL
sudo aws s3 cp s3://aws-codedeploy-us-east-1/latest/install . --region us-east-1
sudo chmod +x ./install
sudo ./install auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment