๋ฐ์ํ ์๋ฒ/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. ์ด์ 1 2 ๋ค์ 300x250