VM์˜ ๋กœ๊ทธ์ธ ์…ธ์ด `nologin`์ธ ๊ณ„์ •์— ๋‚ด public key๋ฅผ ์‹ฌ๊ธฐ
๊ฐœ๋ฐœ&IT/Infra. & Arch. & Cloud2024. 8. 12. 13:41VM์˜ ๋กœ๊ทธ์ธ ์…ธ์ด `nologin`์ธ ๊ณ„์ •์— ๋‚ด public key๋ฅผ ์‹ฌ๊ธฐ

์ด ์ž‘์—…์€ ๊ธฐ๋ณธ์ ์œผ๋กœ ssh-copy-id์™€ ์œ ์‚ฌํ•œ ์—ญํ• ์„ ํ•˜๋‚˜, ๋Œ€์ƒ VM์˜ ๊ณ„์ •์˜ ๋กœ๊ทธ์ธ ์…ธ์ด nologin์ด๋ผ์„œ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์—†์„ ๋•Œ ์‹œ๋„ํ•ด๋ณผ ์ˆ˜ ์žˆ๋‹ค.Public key๋ฅผ ์‹ฌ์„ ๋Œ€์ƒ์ด `zabbix@10.123.0.8`๋ผ ์น˜๊ณ , ํ•ด๋‹น ๊ณ„์ •์˜ ํ™ˆ ๊ฒฝ๋กœ๊ฐ€ ์ƒ์„ฑ๋˜์–ด์žˆ์ง€ ์•Š์„ ๊ฒฝ์šฐ, ์•„๋ž˜์™€ ๊ฐ™์ด ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋‹ค.๋‹ค๋งŒ ์ด ์ž‘์—…์„ ์œ„ํ•ด ๋Œ€์ƒ VM์˜ root ๊ถŒํ•œ์ด ํ•„์š”ํ•˜๋‹ค.ssh root@10.123.0.8 \ "mkdir -p /var/lib/zabbix;chown zabbix:zabbix /var/lib/zabbix; sudo -u zabbix mkdir -p /var/lib/zabbix/.ssh"cat ~/.ssh/id_rsa.pub | \ ssh root@10.123.0.8 \ "sudo ..

OpenVPN Community for Windows 2.6.11
์—ฌ๋Ÿฌ ์œ ํ‹ธ๋ฆฌํ‹ฐ2024. 7. 13. 16:05OpenVPN Community for Windows 2.6.11

OpenVPN Connect ๋ง๊ณ  ๊ธฐ์กด์˜ Community ๋ฒ„์ „์ž…๋‹ˆ๋‹ค. ์•„๋ž˜๋Š” AMD64์šฉ (์ผ๋ฐ˜์ ์ธ ์œˆ๋„์šฐ) ๋นŒ๋“œ์ž…๋‹ˆ๋‹ค. ์•„๋ž˜๋Š” ARM64์šฉ (Snapdragon ๋“ฑ ARM ์นฉ์ด ํƒ‘์žฌ๋œ ์œˆ๋„์šฐ) ๋นŒ๋“œ์ž…๋‹ˆ๋‹ค. ์ถœ์ฒ˜: https://openvpn.net/community-downloads/

PowerShell์—์„œ ์ผ์‹œ์ ์œผ๋กœ ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์ˆ˜์ •ํ•˜๊ธฐ
๊ฐœ๋ฐœ&IT/Infra. & Arch. & Cloud2024. 4. 2. 15:55PowerShell์—์„œ ์ผ์‹œ์ ์œผ๋กœ ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์ˆ˜์ •ํ•˜๊ธฐ

์˜๊ตฌ์ ์œผ๋กœ ์ถ”๊ฐ€/์ˆ˜์ •ํ•˜๋Š” ๊ฒƒ ๋ง๊ณ , ๋‹ค๋งŒ ํ˜„์žฌ Powershell ์„ธ์…˜์—์„œ๋งŒ ์ ์šฉํ•˜๋ ค๋ฉด, ์•„๋ž˜์™€ ๊ฐ™์ด ํ•  ์ˆ˜ ์žˆ๋‹ค. $env:Path # shows the actual content $env:Path = 'C:\foo;' + $env:Path # attach to the beginning $env:Path += ';C:\foo' # attach to the end ์˜ˆ๋ฅผ ๋“ค์–ด, ํ•ด๋‹น ์„ธ์…˜์—์„œ๋งŒ ํŠน์ • ๊ฒฝ๋กœ์˜ java๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด ์•„๋ž˜์ฒ˜๋Ÿผ ์ž…๋ ฅํ•˜์—ฌ Path๋ผ๋Š” ํ™˜๊ฒฝ๋ณ€์ˆ˜์— ์›ํ•˜๋Š” ๊ฐ’์„ ์ผ์‹œ์ ์œผ๋กœ ๋ง๋ถ™์ธ๋‹ค. $env:Path += ';C:\pts\openjdk-17_windows-x64_bin\jdk-17\bin\' ์ถ”๊ฐ€ํ•œ ๋’ค java๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฐ์น˜ ํŒŒ์ผ์ด ์ •์ƒ์ ์œผ๋กœ ์‹คํ–‰๋จ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค. PowerS..

Ubuntu ๋จธ์‹  ๋ณต์ œ ์‹œ IP ์ฃผ์†Œ ๊ฒน์นจ ๋ฌธ์ œ ํ•ด๊ฒฐ
๊ฐœ๋ฐœ&IT/Infra. & Arch. & Cloud2024. 3. 29. 19:53Ubuntu ๋จธ์‹  ๋ณต์ œ ์‹œ IP ์ฃผ์†Œ ๊ฒน์นจ ๋ฌธ์ œ ํ•ด๊ฒฐ

์˜ค๋žœ๋งŒ์— VirtualBox๋ฅผ ์“ธ ์ผ์ด ์žˆ์—ˆ๋Š”๋ฐ, ์•„๋ž˜์™€ ๊ฐ™์ด Ubuntu VM์„ ๋ณต์ œํ•˜๋‹ˆ IP ์ฃผ์†Œ๊ฐ€ ์ค‘๋ณต๋˜๋Š” ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜์˜€๋‹ค. ๋ฌธ์ œ๋Š” MAC ์ฃผ์†Œ๋ฅผ ๋ฐ”๊พธ๊ณ  ์žฌ๋ถ€ํŒ…ํ•ด๋„ IP ์ฃผ์†Œ๊ฐ€ ๊ทธ๋Œ€๋กœ ์ค‘๋ณต๋œ๋‹ค๋Š” ์ ์ด์—ˆ๋‹ค. ๋ณด๋‹ค์‹œํ”ผ VirtualBox VM๋“ค๊ฐ„ ํ†ต์‹ ์„ ์œ„ํ•œ ๋ณ„๋„์˜ NAT ๋„คํŠธ์›Œํฌ๋ฅผ ์ƒ์„ฑํ•ด๋†“์€ ์ƒํƒœ์ด๊ณ , ์—ฌ๊ธฐ์„œ MAC ์ฃผ์†Œ๋„ ์„œ๋กœ ๋‹ค๋ฅด๋‹ค. ๊ทธ๋Ÿผ์—๋„ ๋™์ผํ•œ `10.0.119.5`๋ผ๋Š” IP ์ฃผ์†Œ๋ฅผ ๋ณด์—ฌ์ฃผ๊ณ  ์žˆ๋‹ค. ์ด ์ƒํƒœ์—์„œ MAC ์ฃผ์†Œ๋ฅผ ๋ฐ”๊พธ๊ณ  ์žฌ๋ถ€ํŒ…ํ•ด๋„ IP ์ฃผ์†Œ๊ฐ€ ๋ฐ”๋€Œ์ง€ ์•Š๋Š”๋‹ค. ๊ทธ๋Ÿด ๋•Œ๋Š” `nano /etc/netplan/00-installer-config.yaml`์„ ์•„๋ž˜์™€ ๊ฐ™์ด ์ˆ˜์ •ํ•œ๋‹ค. ์ด๋•Œ IP ์ฃผ์†Œ๋ฅผ ์ƒˆ๋กœ ๋ฐ›๊ณ ์ž ํ•˜๋Š” ์ธํ„ฐํŽ˜์ด์Šค๋Š” `enp0s3`์ด๋ผ ๊ฐ€์ •ํ•œ๋‹ค. ํŠนํžˆ ์ € `dhcp-iden..

Adobe Acrobat Reader DC ๊ตฌ๋ฒ„์ „ ์„ค์น˜
์—ฌ๋Ÿฌ ์œ ํ‹ธ๋ฆฌํ‹ฐ2024. 3. 15. 00:31Adobe Acrobat Reader DC ๊ตฌ๋ฒ„์ „ ์„ค์น˜

๋จผ์ € ์ด๋ฏธ ๊น”๋ ค ์žˆ๋Š” ์•„ํฌ๋กœ๋ฑƒ ๋ฆฌ๋”๊ฐ€ ์žˆ๋‹ค๋ฉด ์ œ๊ฑฐํ•œ๋‹ค. ๊ทธ ๋‹ค์Œ, PC์˜ ์ขŒ์ธกํ•˜๋‹จ์— ๋งˆ์šฐ์Šค์šฐํด๋ฆญ ํ›„, ์•„๋ž˜์™€ ๊ฐ™์ด Windows PowerShell (๊ด€๋ฆฌ์ž)๋ฅผ ํด๋ฆญํ•œ๋‹ค. ๊ด€๋ฆฌ์ž ๋ชจ๋“œ์—ฌ์•ผ ํ•œ๋‹ค. ์‹คํ–‰๋˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ๋ช…๋ น ํ”„๋กฌํ”„ํŠธ ๋น„์Šทํ•œ ์ฐฝ์ด ๋œฐ ๊ฒƒ์ด๋‹ค. ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ๋„ฃ์€ ๋’ค ์—”ํ„ฐ ์นœ๋‹ค. ์ด ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด `choco`๋ผ๋Š” ํ”„๋กœ๊ทธ๋žจ ์„ค์น˜ ๊ด€๋ฆฌ์ž๋ฅผ ์ด์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋œ๋‹ค. Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System...

๋‚˜์˜ ์ด์•ผ๊ธฐ2024. 3. 12. 23:14์งง์€ ๋ฌผ์Œ

๋ˆ„๊ตฐ๊ฐ€๋Š” ์ž์‹ ์˜ ๊ฒฐํ•์„ ์ง„์‹ค๊ณผ ์ง€ํ˜œ๋กœ ์Šนํ™”์‹œํ‚จ๋‹ค.๋ˆ„๊ตฐ๊ฐ€๋Š” ์ž์‹ ์˜ ๊ฒฐํ•์„ ๋ฐฉ์–ด๊ธฐ์ œ์™€ ์—ด๋“ฑ๊ฐ์œผ๋กœ ๋งŒ๋“ค ๋ฟ์ด๋‹ค. ๋‚˜๋Š” ๊ณผ์—ฐ ์–ด๋Š ์ชฝ์ธ๊ฐ€.

Ansible ์„ค์น˜ ๋ฐ Ansible๋กœ AWS EC2 ์ƒ์„ฑํ•˜๊ธฐ
๊ฐœ๋ฐœ&IT/Infra. & Arch. & Cloud2024. 3. 11. 15:19Ansible ์„ค์น˜ ๋ฐ Ansible๋กœ AWS EC2 ์ƒ์„ฑํ•˜๊ธฐ

๊ธฐ์กด์˜ ๋ฌผ๋ฆฌ์  ์„œ๋ฒ„, ์Šคํ† ๋ฆฌ์ง€, ๋„คํŠธ์›Œํฌ ๋“ฑ์„ ์ „๋ถ€ ํด๋Ÿฌ์Šคํ„ฐ๋กœ ๋ฌถ๊ณ  ์ถ”์ƒํ™”ํ•˜์—ฌ, ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐฐํฌ ์š”๊ตฌ์‚ฌํ•ญ์— ๋งž๊ฒŒ ๊ฐ€์ƒํ™”๋œ ์ธํ”„๋ผ๋ฅผ ์ฝ”๋“œ๋กœ ์ƒ์„ฑ, ๊ด€๋ฆฌ, ํ๊ธฐํ•˜๋Š” ์ผ๋ จ์˜ ๊ณผ์ •์„ '์ฝ”๋“œํ˜• ์ธํ”„๋ผ์ŠคํŠธ๋Ÿญ์ฒ˜ (IaC; Infrastructrure as Code)'๋ผ๊ณ  ํ•œ๋‹ค. ์ด๋ฒˆ ํฌ์ŠคํŠธ์—์„œ๋Š” ํ•ด๋‹น ๊ณผ์ •์˜ ์ผ๋ถ€์ธ ์ž๋™ํ™”๋ฅผ Ansible๋ฅผ, AWS EC2 ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๊ฐ„๋‹จํ•œ ์˜ˆ์ œ๋ฅผ ํ†ตํ•˜์—ฌ ๋‹ค๋ฃจ์–ด๋ณด๊ณ ์ž ํ•œ๋‹ค. ์ด ํฌ์ŠคํŠธ์—์„œ๋Š” ์œ ์ €์˜ Windows PC๊ฐ€ ๊ด€๋ฆฌ ๋…ธ๋“œ๊ฐ€ ๋˜๋ฉฐ, ์œ ์ €์˜ PC ==> WSL (Windows Subsystem for Linux) Ubuntu 22.04 LTS + Ansible๋กœ ์ง์ ‘ AWS์— ์ ‘๊ทผํ•˜์—ฌ EC2 ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•  ๊ฒƒ์ด๋‹ค. ํ™˜๊ฒฝ ๊ตฌ์„ฑ Ansible์„ ์œ„ํ•œ ๊ฒฝ๋กœ ์ƒ์„ฑ ์ด์ œ EC..

Spring Boot MSA ๋ชจ๋‹ˆํ„ฐ๋ง: Spring Boot MSA + Prometheus + Grafana
๊ฐœ๋ฐœ&IT/DevOps2024. 3. 8. 15:47Spring Boot MSA ๋ชจ๋‹ˆํ„ฐ๋ง: Spring Boot MSA + Prometheus + Grafana

Spring Boot๋กœ ๋ฐฑ์—”๋“œ๋ฅผ ์„œ๋น„์Šคํ•˜๋‹ค ๋ณด๋ฉด ๊ฐ ์„œ๋น„์Šค๋“ค์˜ ์ƒํƒœ๋ฅผ ํ•œ ๋ˆˆ์— ๋ณผ ์ˆ˜ ์žˆ๋Š” ์‹œ๊ฐํ™”๋œ ๋ชจ๋‹ˆํ„ฐ๋ง ์‹œ์Šคํ…œ์ด ํ•„์š”ํ•ด์ง„๋‹ค. ์ด๋ฅผ ์œ„ํ•ด ์ด๋ฒˆ ํฌ์ŠคํŠธ์—์„œ๋Š” Spring Boot MSA ํ”„๋กœ์ ํŠธ์— Prometheus๋ฅผ ์—ฐ๋™ ํ›„, Grafana๋กœ ์‹œ๊ฐํ™”๋œ ๋ชจ๋‹ˆํ„ฐ๋ง ์‹œ์Šคํ…œ์„ ๊ตฌ์ถ•ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ณ ์ž ํ•œ๋‹ค. Prometheus๋ž€? Prometheus๋Š” ์›๋ž˜ Soundcloud์—์„œ ๋งŒ๋“  ์˜คํ”ˆ์†Œ์Šค ์‹œ์Šคํ…œ ๋ชจ๋‹ˆํ„ฐ๋ง ๋ฐ ์•Œ๋ฆผ ํˆดํ‚ท์ž…๋‹ˆ๋‹ค. 2012๋…„ ์‹œ์ž‘ ์ด๋ž˜, ๋งŽ์€ ๊ธฐ์—…๊ณผ ์กฐ์ง์ด Prometheus๋ฅผ ์ฑ„ํƒํ–ˆ์œผ๋ฉฐ, ์ด ํ”„๋กœ์ ํŠธ๋Š” ๋งค์šฐ ํ™œ๋ฐœํ•œ ๊ฐœ๋ฐœ์ž ๋ฐ ์‚ฌ์šฉ์ž ์ปค๋ฎค๋‹ˆํ‹ฐ๋ฅผ ๋ณด์œ ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ํ˜„์žฌ๋Š” ๋…๋ฆฝํ˜• ์˜คํ”ˆ ์†Œ์Šค ํ”„๋กœ์ ํŠธ๋กœ์„œ ์–ด๋–ค ํšŒ์‚ฌ๋กœ๋ถ€ํ„ฐ๋„ ๋…๋ฆฝ์ ์œผ๋กœ ์œ ์ง€ ๊ด€๋ฆฌ๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ๊ฐ•์กฐํ•˜๊ณ  ํ”„๋กœ์ ํŠธ์˜ ๊ฑฐ๋ฒ„๋„Œ..

image