##apt-get 업데이트
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nginx
##rvm 설치 후 편하게 설치
curl -L get.rvm.io | bash -s stable
//실패 메세지. 다음과 같은 힌트 명령어 입력 후 다시 시도.
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}).listen(8080, 'localhost'); | |
console.log('Server running at http://localhost:8080/'); |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} -s [OR] | |
RewriteCond %{REQUEST_FILENAME} -l [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^.*$ - [NC,L] | |
RewriteRule ^(.*) /app/index.html [NC,L] | |
</IfModule> |
##apt-get 업데이트
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nginx
##rvm 설치 후 편하게 설치
curl -L get.rvm.io | bash -s stable
//실패 메세지. 다음과 같은 힌트 명령어 입력 후 다시 시도.
#nvm 설치 참고: https://github.com/creationix/nvm
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
#설치 후 다음 스크립트 실행
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
#node 설치