Skip to content

Instantly share code, notes, and snippets.

@koo6357
Last active November 6, 2019 11:09
Show Gist options
  • Save koo6357/41261f4e1daeba2a10eb6a461ce554ba to your computer and use it in GitHub Desktop.
Save koo6357/41261f4e1daeba2a10eb6a461ce554ba to your computer and use it in GitHub Desktop.
aws ami setting
  • set date
  // date for Asia/Seoul localtime
  sudo rm /etc/localtime
  sudo ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
  • install git
  yum install git
  • install node
  // Install node version manager (nvm) by typing the following at the command line.
  curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
  
  // Activate nvm by typing the following at the command line.
  . ~/.nvm/nvm.sh
  
  // Use nvm to install the latest version of Node.js by typing the following at the command line.
  nvm install node
  
  // Test that Node.js is installed and running correctly by typing the following at the command line.
  node -e "console.log('Running Node.js ' + process.version)"
  • install gcc-c++ make
  // To be able to build native modules from npm we will need to install the development tools and libraries:
$ sudo yum 
  install gcc-c++ make
  • install nginx
  sudo yum install nginx
  // example
  sudo chmod +w /etc/nginx/nginx.conf
  sudo chmod 755 /home/ec2-user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment