728x90 ๋ฐ์ํ ์๋ฒ/Linux9 [Linux] fail - deploy upload failed, exception : permission denied ubuntu ๊ธฐ์ค ~$ sudo chmod 755 /var/lib/tomcat9/webapps ~$ ls -al /var/lib/tomcat9 ํฉ๊ณ 20 . . drwxr-xr-x 8 tomcat tomcat 4096 10์ 1 11:34 webapps chmod (change mode์ ์ฝ์) ๋ช ๋ น์ด๋ ํ์ผ๋ค์ด๋ ๋๋ ํฐ๋ฆฌ์ ํ์ผ ์์คํ ๋ชจ๋๋ค์ ๋ฐ๊พผ๋ค. ํ์ผ ๊ถํ ๋ฐ๊พผ๋ค์๋ permission denied ๋ ๊ฒฝ์ฐ ์๋ ์ฐธ์กฐ ( ์ถ์ฒ : StackExchange ) #setting up tomcat as the webapps group ~$ chgrp -R tomcat /var/lib/tomcat9/webapps #deploy new applications, add write permissions ~$ .. 2022. 10. 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. 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. [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. Firewalld is not running ํด๊ฒฐํ๊ธฐ $ sudo systemctl start firewalld ์คํ์์ผ์ฃผ๋ฉด ์ ์์ ์ผ๋ก ๋์ํฉ๋๋ค. 2022. 2. 9. ์ด์ 1 ๋ค์ 728x90 ๋ฐ์ํ