๋ฐ์ํ ์๋ฒ23 [EC2] AWS ํ๋ฆฌํฐ์ด ์ฌ์ฉ๋ฒ Step2 - ์ฐ๋ถํฌ ์๋ฒ ์ด๊ธฐ์ค์ ์๋ ํ์ธ์ yunamom ์ ๋๋ค :D์ด๋ฒ ํฌ์คํ ์์๋ Step2 ์ฐ๋ถํฌ ์๋ฒ ์ด๊ธฐ์ค์ ๋ฐฉ๋ฒ์ ์์๋๋ก ์์ฑํ๊ฒ ์ต๋๋ค. ๐ฉ๐ป๐ป ์ฐ๋ถํฌ apt ๊ธฐ๋ณธ๋ช ๋ น์ด ์์๋๊ธฐ์๋ฒ ์ ์ํ ํจํค์ง ์ ๋ฐ์ดํธํ์์กด ์ค์ ์ค์ ์์ญ ๋ง๋ค๊ธฐ (๊ฐ์ ๋ฉ๋ชจ๋ฆฌ : Virtual memory)์ค์ ์์ญ ํฌ๊ธฐ ์กฐ์ ํ๋ ๋ฐฉ๋ฒโจ ์ฐ๋ถํฌ apt ๊ธฐ๋ณธ๋ช ๋ น์ด ์์๋๊ธฐ#Advanced Package Tools apt๋ ubuntu์์ SW๋ฅผ ์ค์น, ์ ๋ฐ์ดํธ, ์ ๊ฑฐํ๋ ๋ช ๋ น์ด์ด๋ค.#์ค์น๋ ํจํค์ง ๋ชฉ๋ก ๋ณด๊ธฐ ๋ช ๋ น$ apt list --installed#ํจํค์ง ์ค์น ๋ช ๋ น$ sudo apt install ํจํค์ง๋ช #ํจํค์ง ์ ๊ฑฐ ๋ช ๋ น$ sudo apt remove ํจํค์ง๋ช #์ต์ ํจํค์ง ๋ชฉ๋ก ๋ค์ด๋ก๋ ๋ช ๋ น (ubuntu์ ์ค์น ๊ฐ๋ฅํ ํจํค์ง๋ค์ ๋ํ ์ต์ .. 2022. 8. 1. [EC2] AWS ํ๋ฆฌํฐ์ด ์ฌ์ฉ๋ฒ Step1 - ์ธ์คํด์ค/ํ๋ ฅ IP ์์ฑ ์๋ ํ์ธ์ yunamom ์ ๋๋ค :D ์ด๋ฒ ํฌ์คํ ์์๋ ์๋ง์กด ์น์๋ฒ ์ธ์คํด์ค ์์ฑ ๋ฐ ํ๋ ฅIP๋ก ์๋ฒ์ ์ ํ๋ ๋ฐฉ๋ฒ์ ์์๋๋ก ์์ฑํ๊ฒ ์ต๋๋ค. ๐ฉ๐ป๐ป โจAWS ๊ณ์ ๋ฐ ์ธ์คํด์ค ์์ฑํ๊ธฐ CPU๋ Arm ์ ํ! ( Arm ๊ธฐ๋ฐ EC2 T4g.small ์ธ์คํด์ค๋ฅผ ์ฌ์ฉํด๋ณด๊ธฐ์ํด ) Q: Amazon EC2 T4g ์ธ์คํด์ค๋ ๋ฌด์์ ๋๊น? Amazon EC2 T4g ์ธ์คํด์ค๋ Arm ๊ธฐ๋ฐ AWS Graviton2 ํ๋ก์ธ์๋ก ๊ตฌ๋๋๋ ์ฐจ์ธ๋ ๋ฒ์ฉ ๋ฒ์คํธ ๊ฐ๋ฅ ์ธ์คํด์ค์ ๋๋ค. T4g ์ธ์คํด์ค๋ T3 ์ธ์คํด์ค๋ณด๋ค ์ต๋ 40% ๋ ๋์ ๊ฐ๊ฒฉ ๋๋น ์ฑ๋ฅ์ ์ ๊ณตํฉ๋๋ค. ์ ์ฉ ํ๋์จ์ด์ Nitro ํ์ดํผ๋ฐ์ด์ ๊ฐ ๊ฒฐํฉ๋ AWS Nitro ์์คํ ์ ๊ธฐ๋ฐ์ผ๋ก ๊ตฌ์ถ๋์์ต๋๋ค. Q: T4g ์ธ์คํด์ค์ ์ด์์ ์ธ ์ฌ์ฉ ์ฌ๋ก๋ ๋ฌด์์ .. 2022. 8. 1. To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address. ํด๊ฒฐํ๊ธฐ To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address. ubuntu:~$ sudo certbot certonly --manual --email [your email] -d [your domain] Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator manual, Installer None Obtaining a new certificate Performing the foll.. 2022. 7. 20. [EC2] 101: network is unreachable - apt update ์๋ฌ ํด๊ฒฐ AWS EC2 ์ฐ๋ถํฌ ์๋ฒ์๋ฌ 101: ๋คํธ์ํฌ๊ฐ ์ ๊ทผ ๋ถ๊ฐ๋ฅํฉ๋๋ค / 101: network is unreachable ubuntu@green:~$ sudo apt update ์ค๋ฅ:1 http://security.ubuntu.com/ubuntu focal-security InRelease security.ubuntu.com:80์ ์ฐ๊ฒฐ์ ์ด๊ธฐํํ ์ ์์ต๋๋ค (2620:2d:4000:1::16). - connect (101: ๋คํธ์ํฌ๊ฐ ์ ๊ทผ ๋ถ๊ฐ๋ฅํฉ๋๋ค) security.ubuntu.com:80์ ์ฐ๊ฒฐ์ ์ด๊ธฐํํ ์ ์์ต๋๋ค (2620:2d:4000:1::19). - connect (101: ๋คํธ์ํฌ๊ฐ ์ ๊ทผ ๋ถ๊ฐ๋ฅํฉ๋๋ค) security.ubuntu.com:80์ ์ฐ๊ฒฐ์ ์ด๊ธฐํํ ์ ์์ต๋๋ค (200.. 2022. 7. 5. Problem binding to port 80: Could not bind to IPv4 or IPv6. ssl ์ธ์ฆ์ ๋ฐ๊ธ ๊ณผ์ ์์ ์๋ฌ๊ฐ ๋ฌ๋ค. ํด๊ฒฐ : 80๋ฒ ํฌํธ๋ฅผ ์ ์ ํ ์ ์๋๋ก ๊ธฐ์กด ์น ํ๋ ์์ํฌ๋ ํน์ ์๋ฒ ํ๋ก๊ทธ๋จ์ ์ข ๋ฃํ๊ธฐ ubuntu:~$ sudo lsof -i :80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME nginx 1031 root 6u IPv4 25900 0t0 TCP *:http (LISTEN) nginx 1031 root 7u IPv6 25901 0t0 TCP *:http (LISTEN) nginx 1032 www-data 6u IPv4 25900 0t0 TCP *:http (LISTEN) nginx 1032 www-data 7u IPv6 25901 0t0 TCP *:http (LISTEN) ubuntu:~$ kill 1031 .. 2022. 7. 5. [AWS] EC2 persistent instance retirement scheduled ํด๊ฒฐ ๋ณต๊ตฌํ ์ ์๋ ์ฅ์ ๋ฅผ ๊ฐ์งํ๋ฉด EC2 ์ธ์คํด์ค๊ฐ ์ฌ์ฉ ์ค์ง๋๋๋ก ์์ฝ๋ฉ๋๋ค. ๋ผ๊ณ ์ด๋ฉ์ผ์ด ๋์๋ค..!! ๋๋ฒ์งธ ๊ฒฝํํ๋ ์ผ์ด๋ผ์ ๊ทธ๋ฐ์ง ์ด์ ๊ทธ๋ฌ๋ ค๋ํ๋ค..๋ฌด๋ฃ ์ธ์คํด์ค๋๊น ์ด๋ฐ๊ฑด๊ฐ?! ํ๊ฒฝ : EC2 Ubuntu, tomcat9, Nginx, Oracle 11g XE Instance state -> Stop instance ํด๋ฆญ (์์ ํ Stopped ๋ ๋๊น์ง 5๋ถ ~10๋ถ ์ ๋ ์์๋จ) -> Start instance ํด๋ฆญ ์๋ฒ ์ ์ํ ํฐ์บฃ & Nginx ์ฌ์์ $ sudo service tomcat9 start $ sudo service nginx start ์ค๋ผํด ๊ธฐ๋ $ su - oracle $ sqlplus /nolog SQL > conn /as sysdba SQL > startup; OR.. 2022. 4. 21. ์ด์ 1 2 3 4 ๋ค์ 300x250