๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
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.
728x90
๋ฐ˜์‘ํ˜•