728x90 300x250 ์๋ฒ23 [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. [Linux] certbot 404 ์๋ฌ type: unauthorized ํด๊ฒฐํ๊ธฐ ์๋ฌํด๊ฒฐ๊ณผ์ ์ ์ค์ค๋ก ๊ธฐ์ตํ๊ธฐ์ํด ํฌ์คํ ํฉ๋๋ค. AWS ์๋ฒํ๊ฒฝ : Ubuntu, Tomcat9, Nginx(ํฐ์บฃ์ฐ๋) Tip: ํฐ๋ฏธ๋ ์ฐฝ 2๊ฐ ์ผ๋๊ณ ์คํํด์ผํจ. โจ์ฒซ๋ฒ์งธ ํฐ๋ฏธ๋ (Ubuntu ์๋ฒ ์ ์ํ) certbot ์๋ฌ 404 ubuntu@:~$ sudo certbot --nginx -d yunamom.duckdns.org Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator nginx, Installer nginx Obtaining a new certificate Performing the following challenges: http-01 challenge for yunamom.duck.. 2022. 4. 19. [Linux] certbot ๋ช ๋ น์ผ๋ก ์ธ์ฆ์ ์ญ์ ํ๋๋ฐฉ๋ฒ โ ์ธ์ฆ์ ๋ชฉ๋ก ํ์ธ ubuntu@:~$ sudo certbot certificates Saving debug log to /var/log/letsencrypt/letsencrypt.log - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Found the following certs: Certificate Name: yunamom.duckdns.org Domains: yunamom.duckdns.org Expiry Date: 2022-04-17 23:33:36+00:00 (INVALID: EXPIRED) Certificate Path: /etc/letsencrypt/live/yunamom.duckdns.org/.. 2022. 4. 19. [Linux] ๋ฆฌ๋ ์ค ๊ธฐ๋ณธ ๋ช ๋ น์ด โ ํ์ ๋ช ๋ น์ด๋ค ์์ฝ ls - ํ์ฌ ์์น์ ํ์ผ ๋ชฉ๋ก ์กฐํ cd - ๋๋ ํฐ๋ฆฌ ์ด๋ touch - 0๋ฐ์ดํธ ํ์ผ ์์ฑ, ํ์ผ์ ๋ ์ง์ ์๊ฐ์ ์์ mkdir - ๋๋ ํฐ๋ฆฌ ์์ฑ cp - ํ์ผ ๋ณต์ฌ mv - ํ์ผ ์ด๋ rm - ํ์ผ ์ญ์ cat - ํ์ผ์ ๋ด์ฉ์ ํ๋ฉด์ ์ถ๋ ฅ, ๋ฆฌ๋ค์ด๋ ์ ๊ธฐํธ('>')๋ฅผ ์ฌ์ฉํ์ฌ ์๋ก์ด ํ์ผ ์์ฑ redirection - ํ๋ฉด์ ์ถ๋ ฅ ๊ฒฐ๊ณผ๋ฅผ ํ์ผ๋ก ์ ์ฅ alias - ์์ฃผ ์ฌ์ฉํ๋ ๋ช ๋ น์ด๋ค์ ๋ณ๋ช ์ผ๋ก ์ ์ํ์ฌ ์ฝ๊ฒ ์ฌ์ฉํ ์ ์๋๋ก ์ค์ โ ๋ช ๋ น์ด ์ต์ ๊ณผ ์ค๋ช 1. ls (List segments) : ํ์ฌ ์์น์ ํ์ผ ๋ชฉ๋ก ์กฐํ ls -l : ํ์ผ์ ์์ธ์ ๋ณด ls -a : ์จ๊น ํ์ผ ํ์ ls -t : ํ์ผ๋ค์ ์์ฑ์๊ฐ์(์ ์ผ ์ต์ ๊ฒ๋ถํฐ)์ผ๋ก ํ์ ls -rt : ํ์ผ๋ค์.. 2022. 4. 13. [Linux] curl ๋ช ๋ น์ด ์ฌ์ฉ๋ฒ (http/https ๊ด๋ จ) CURL ์ฃผ์ ์ต์ (http/https ๊ด๋ จ) โจcurl ๋ช ๋ น์ด์ ์ฌ์ฉ๋ฒ $ curl [options..] ํน์ URL์ ๋์์ผ๋ก ๋์ํ๋ฉฐ URL ์์๋ curl์ ์ต์ ์ ์ฌ์ฉํ๋ฉด ๋๋ค. curl ๋ช ๋ น์ ์ต์ ์ GNU getopt๋ฅผ ์ฌ์ฉํ๊ณ ์๋ค. curl ๋ช ๋ น์ ์ต์ ์ ํ์ดํ ํ๋๋ก ์์ํ๋ short ํ์๊ณผ ํ์ดํ ๋๊ฐ๋ก ์์ํ๋ long ํ์์ ๋ชจ๋ ์ง์ํ๋ค. ๐http, https ํ๋กํ ์ฝ๊ณผ ๊ด๋ จ๋ curl์ ์ต์ short long ์ค๋ช -k --insecure https ํ๋กํ ์ฝ์์ SSL ์ธ์ฆ์์ ๋ํ ๊ฒ์ฆ์์ด ์ฐ๊ฒฐ -l --head HTTP ํค๋๋ง ๋ณด์ฌ์ฃผ๊ณ ์ปจํ ์ธ ๋ ํ์ํ์ง ์์ -D --dump-header HTTP ํค๋๋ฅผ file์ ๊ธฐ๋ก (๋คํ) -L --location HTTP 30.. 2022. 4. 6. [Linux] curl ์ ๋ํ์ฌ ์์๋ณด์ โจCURL ์ด๋? curl ์ ๋ช ์นญ์ "client URL" ์ ๋ํํ๋ ๊ฒ์ผ๋ก 1997๋ ์ ์ฒ์ ์ถ์๋์๋ค. ์ฆ ํด๋ผ์ด์ธํธ๊ฐ ์คํฌ๋ฆฝํธ๋ก์จ ์๋ฒ์ ๋ฐ์ดํฐ๋ฅผ ์์ฒญํ๋๊ฒ์ ๋งํ๋ค. URL์ ์์์ ๋ฐ์ดํฐ๋ฅผ ์ ์กํ๊ธฐ(transferring) ์ํ์ฌ ๋ช ๋ น ์ค ๋๊ตฌ(command line tool)์ ์คํฌ๋ฆฝํธ(scripts)์์ ์ฌ์ฉํ ์ ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ ๊ณตํ๋ C ๊ธฐ๋ฐ์ ์ปดํจํฐ ์ํํธ์จ์ด ํ๋ก์ ํธ์ด๋ค. โจCURL ์ด ๋ฌด์์ ์ฐ์ด๋์? curl์ ๋ค์ํ ๊ณณ์์ ์ฌ์ฉ๋๊ณ ์์ต๋๋ค. ์๋์ฐจ, ํ ๋ ๋น์ , ๋ผ์ฐํฐ, ํ๋ฆฐํฐ, ์ค๋์ค ์ฅ๋น, ํด๋ ์ ํ, ํ๋ธ๋ฆฟ, ์ ํฑ๋ฐ์ค, ๋ฏธ๋์ด ํ๋ ์ด์ด์์๋ ์ฌ์ฉ๋๋ฉฐ, ๋งค์ผ ์์ญ์ต ๋ช ์ ์ฌ๋๋ค์๊ฒ ์ํฅ์ ๋ฏธ์น๋ ์์ฒ ๊ฐ์ ์ํํธ์จ์ด ์ ํ๋ฆฌ์ผ์ด์ ์ ์ํ ์ธํฐ๋ท ์ ์ก ํ๋กํ ์ฝ์ ๋๋ค. ๊ฐ์ฅ.. 2022. 4. 6. [error] EC2 ์๋ฒ ์ฌ๋ถํ ํ ๋ฐ์ดํฐ ์ฐ๋์๋ฌ ํด๊ฒฐํ๊ธฐ EC2 ์๋ฒ๋ฅผ ์ฌ์์ํ์ ์ค๋ผํดDB ์ ์ฐ๋์ด ๋์ง์์์ ์๋ฌ๊ฐ ๋ฌ๋ค. The server encountered an unexpected condition that prevented it from fulfilling the request. ์๋ฌ ํด๊ฒฐ ๋ฐฉ๋ฒ ๐๋ฆฌ์ค๋ ๊ด๋ฆฌ ์ ์ $lsnrctl ๐๋ฆฌ์ค๋ ์์ $start ํด๊ฒฐ ์๋ฃ! ๐ ๋ฆฌ์ค๋์ ๋ํด ์์๋ณด๊ธฐ [Oracle] ๋ฆฌ์ค๋(Listener) ๋? ์๋ ํ์ธ์ yunamom ์ ๋๋ค :D ์ค๋์ ์ค๋ผํด ๋ฆฌ์ค๋์ ๊ดํ์ฌ ์์๋ณด๊ฒ ์ต๋๋ค.๐ ๋ฆฌ์ค๋(Listener) ๋ ๋ฌด์์ธ๊ฐ์? ์ค๋ผํด ๋ฆฌ์ค๋๋ ๋คํธ์ํฌ๋ฅผ ์ด์ฉํ์ฌ ํด๋ผ์ด์ธํธ์์ ์ค๋ผํด ์๋ฒ๋ก ์ฐ๊ฒฐํ๊ธฐ yunamom.tistory.com 2022. 3. 31. ์ด์ 1 2 3 ๋ค์ 728x90 300x250