Proxy Server ์ฐ๊ฒฐ์ ๋ณธ domain ํน์ ip์ ํ์ง ์๊ณ Sub Domain์ ์ฐ๊ฒฐํ๊ณ ์ถ๋ค๋ฉด ๋ค์ ์์น์ Proxy Server Code๋ฅผ ์์ฑํด๋๋ฉด ๋๋ค. prod subDomain์ ์ฐ๊ฒฐํด ๋ ๊ฒ์ด๊ธฐ ๋๋ฌธ์ ๋ค์๊ณผ ๊ฐ์ด ์์ฑํ๋ค. server { root /var/www/html/prod; index index.php index.html index.htm index.nginx-debian.html; server_name prod.๋๋ฉ์ธ์ด๋ฆ.shop; location / { proxy_pass http://localhost:9000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_..
Backend Language/Ubuntu
๊ฐ๋จํ๊ฒ ์๋ฒ ๋ฐฐํฌ ๋ฐ ๋ฌด์ค๋จ ๋ฐฐํฌํ ๊ฒ์ ์ ๋ฆฌํด๋ณด๊ณ ์ ํ๋ค. sudo su # update sudo apt update # nginx proxy server ์ฌ์ฉํ ์์ ์ด๊ธฐ ๋๋ฌธ์ nginx ๋ค์ด sudo apt install nginx # domain ์ฐ๊ฒฐ ๋ฐ proxy server ์ฐ๊ฒฐ # default ํ์ผ ๋ณ๊ฒฝ vim /etc/nginx/sites-avaliable/default # default file ๋ด๋ถ server_name _; # ์ด๋ถ๋ถ์ ์ํ๋ ๋๋ฉ์ธ ์ฐ๊ฒฐ location ~~{ # 404 ๋ญ์๊ธฐ ์ฃผ์ ์ฒ๋ฆฌ proxy_pass http://localhost:8080; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwa..

com.mysql.cj.jdbc.exceptions.communicationsexception: communications link failure the last packet sent successfully to the server was 0 milliseconds ago. the driv er has not received any packets from the server. ์ฑ ๋ฐ์นญ์ ์ํด ์๋ฒ๋ฅผ ๋ฐฐํฌํ๋ ์์ค ๋ค์๊ณผ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค. Mysql์ ์ค์นํ์ง ์๊ณ ์๋, ์ ๋ฒ์ ๋ฐฐํฌ๋ฅผ ์ฑ๊ณตํ์๊ธฐ ๋๋ฌธ์ ์ด์ ๋ฅผ ์์ง ๋ชปํ์๋ค. Mysql์ ๋ค์ด ๋ฐ์๋ณด๊ณ , mysql์ ๋ค์ด๋ฐ์ผ๋ localhost์ ์ ๊ทผ์ด ๋ถ๊ฐ๋ฅํ๋ค๋ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค. ์ง๋ ๋ฐฐํฌ ๋์๋ ๋ฐ๋ก mysql์ ๋ค์ด ๋ฐ์ง ์๊ณ ๋, ์์ ๊ฐ์ ์..

์๋ฒ์์ ๋ฐฐํฌ๋ฅผ ํ๊ฒ ๋๋ฉด redis๊ฐ ๋ค์ด์ด ๋์ด ์์ง ์์ ์๋ฌ ์ฝ๋๊ฐ ๋ฐ์ํ๋ค. redis๋ฅผ ์ด์ฉํ ๋ก๊ทธ์์์ ๊ตฌํํ๊ธฐ ๋๋ฌธ์ ubuntu server ํ๊ฒฝ์์ ๋ค์ด์ ๋ฐ์ ์๋ฌ๋ฅผ ํด๊ฒฐํด์ค์ผ ํ๋ค. sudo add-apt-repository ppa:redislabs/redis sudo apt-get update sudo apt-get install redis ์ดํ redis์ port๊ฐ ์ ์คํ๋๊ณ ์๋์ง ํ์ธํด๋ณด๋ฉด apt install net-tools netstat -ntlp | grep 6379 ์ ์ผ์ ธ ์๋ ๊ฒ์ ํ์ธํ ์ ์๋ค. ์ด๋ผ์๋ ์๋ฒ ๋ด์ spring ํ๋ก์ ํธ์์ redis ์ ๊ด๋ จ๋ ์๋ฌ๊ฐ ๋๋ค๋ฉด, spring project applicaiton.properties, or yml..