// date for Asia/Seoul localtime
sudo rm /etc/localtime
sudo ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
// 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)"
// 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
// example
sudo chmod +w /etc/nginx/nginx.conf
sudo chmod 755 /home/ec2-user