nvm 설치
$ sudo curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.36.0/install.sh | bash
$ export NVM_DIR=" [ -s "$NVM_DIR/nvm.sh" ] && . " [ -s "$NVM_DIR/bash_completion" ] && . " nvm ls-remote 다운로드할수있는버전확인
$ nvm install 16.0.0
$ npm i
버전확인
node -v
npm -v
npx -v
해제
sudo iptables -D PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
[X] 작동안함..8080은되는데;;
sudo apt install nginx
server {
listen 80;
location / {
root /home/ubuntu/sidedish/frontend/build;
index index.html index.htm;
try_files $uri /index.html;
}
}
sudo systemctl stop nginx
sudo systemctl start nginx
sudo systemctl status nginx
sudo nginx -t
scp -i "/Users/kyu/Documents/Source/kyu-instance.pem" /Users/kyu/IdeaProjects/sidedish/backend/build/libs/backend-0.0.1-SNAPSHOT.jar ubuntu@15.164.169.189:~/