๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

์„œ๋ฒ„/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.
300x250

์ฝ”๋“œ