# 🐳 [Windows] 2. μ‹œμŠ€ν…œ & μ»¨ν…Œμ΄λ„ˆ DevOps [⬅️ 메인 README둜 λŒμ•„κ°€κΈ°](../README.md) | [🍎 macOS / 🐧 Linux κ°€μ΄λ“œ 보기](./UNIX-02-SYSTEM-DEVOPS.md) --- ## ⚑ λΉ λ₯Έ 원클릭 μ„€μΉ˜ (PowerShell / CMD) ### 2.1. bottom (btm) * **CMD μ°½μ—μ„œ μ‹€ν–‰:** ```cmd powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-bottom.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-bottom.ps1' -OutFile $t; & $t" ``` * **PowerShell μ°½μ—μ„œ μ‹€ν–‰:** ```powershell $t="$env:TEMP\install-bottom.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-bottom.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t ``` ### 2.2. all-smi * **CMD μ°½μ—μ„œ μ‹€ν–‰ (.ps1 λ˜λŠ” .bat):** ```cmd powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-all-smi.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-all-smi.ps1' -OutFile $t; & $t" ``` *배치 파일(.bat) μ‹€ν–‰ μ‹œ:* ```cmd curl -fsSL "https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-all-smi.bat" -o "%TEMP%\install-all-smi.bat" && "%TEMP%\install-all-smi.bat" ``` * **PowerShell μ°½μ—μ„œ μ‹€ν–‰:** ```powershell $t="$env:TEMP\install-all-smi.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-all-smi.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t ``` ### 2.3. Docker * Windowsμ—μ„œλŠ” [Docker Desktop for Windows](https://www.docker.com/products/docker-desktop/)λ₯Ό μ„€μΉ˜ν•˜κ±°λ‚˜, WSL2 λ‚΄λΆ€μ—μ„œ λ¦¬λˆ…μŠ€μš© `install-docker.sh`λ₯Ό μ‹€ν–‰ν•˜μ„Έμš”. ### 2.4. ctop * **CMD μ°½μ—μ„œ μ‹€ν–‰:** ```cmd powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-ctop.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-ctop.ps1' -OutFile $t; & $t" ``` * **PowerShell μ°½μ—μ„œ μ‹€ν–‰:** ```powershell $t="$env:TEMP\install-ctop.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-ctop.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t ``` ### 2.5. lazydocker * **CMD μ°½μ—μ„œ μ‹€ν–‰:** ```cmd powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-lazydocker.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-lazydocker.ps1' -OutFile $t; & $t" ``` * **PowerShell μ°½μ—μ„œ μ‹€ν–‰:** ```powershell $t="$env:TEMP\install-lazydocker.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-lazydocker.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t ``` --- ## πŸ“– 도ꡬ별 상세 μ‚¬μš©λ²• 및 단좕킀 ### 2.1. [bottom (btm)](https://github.com/ClementTsang/bottom) CPU 코어별 μ‚¬μš©λ₯ , RAM/Swap, λ„€νŠΈμ›Œν¬ 흐름, λ””μŠ€ν¬ I/Oλ₯Ό μ‹€μ‹œκ°„ κ·Έλž˜ν”„λ‘œ λ³΄μ—¬μ£ΌλŠ” μ‹œμŠ€ν…œ λ¦¬μ†ŒμŠ€ λͺ¨λ‹ˆν„°λ§ TUI λ„κ΅¬μž…λ‹ˆλ‹€. ```powershell btm # μ‹€ν–‰ λͺ…λ Ήμ–΄ ``` | 단좕킀 | λ™μž‘ | | :--- | :--- | | `q` / `Esc` | ν”„λ‘œκ·Έλž¨ μ’…λ£Œ | | `F1` ~ `F5` | λ©”νŠΈλ¦­ λͺ¨λ‹ˆν„°λ§ νƒ­ 이동 | | `↑` `↓` | ν”„λ‘œμ„ΈμŠ€ λͺ©λ‘ 선택 이동 | | `k` / `dd` | μ„ νƒν•œ λŒ€μƒ ν”„λ‘œμ„ΈμŠ€ κ°•μ œ μ’…λ£Œ (Kill) | | `/` | μ‹€μ‹œκ°„ ν”„λ‘œμ„ΈμŠ€λͺ… 검색 필터링 | --- ### 2.2. [all-smi](https://github.com/lablup/all-smi) Lablupμ—μ„œ κ°œλ°œν•œ 이쒅(Heterogeneous) 가속기 및 GPU/NPU μžμ› 톡합 λͺ¨λ‹ˆν„°λ§ CLI/TUI λ„κ΅¬μž…λ‹ˆλ‹€. ```powershell all-smi # μΈν„°λž™ν‹°λΈŒ λͺ¨λ‹ˆν„°λ§ TUI μ„Έμ…˜ μ‹œμž‘ all-smi --help # 도움말 및 μ‚¬μš© κ°€λŠ₯ μ˜΅μ…˜ 확인 ``` --- ### 2.3. [Docker](https://www.docker.com/) μ»¨ν…Œμ΄λ„ˆ 기반 μ• ν”Œλ¦¬μΌ€μ΄μ…˜ 가상화 ν”Œλž«νΌμž…λ‹ˆλ‹€. ```powershell docker run hello-world # λ™μž‘ μœ νš¨μ„± ν…ŒμŠ€νŠΈ docker ps # 가동 쀑인 μ»¨ν…Œμ΄λ„ˆ λͺ©λ‘ docker compose up -d # λ©€ν‹° μ»¨ν…Œμ΄λ„ˆ ν™˜κ²½ λ°±κ·ΈλΌμš΄λ“œ ꡬ동 ``` --- ### 2.4. [ctop](https://github.com/bcicen/ctop) & 2.5. [lazydocker](https://github.com/jesseduffield/lazydocker) #### [ctop μ‚¬μš©λ²•] ```powershell ctop # 가동 λͺ…λ Ήμ–΄ ``` | 단좕킀 | λ™μž‘ | | :--- | :--- | | `q` / `Esc` | ν”„λ‘œκ·Έλž¨ μ’…λ£Œ | | `↑` `↓` | μ»¨ν…Œμ΄λ„ˆ 리슀트 이동 | | `l` | μ„ νƒλœ μ»¨ν…Œμ΄λ„ˆμ˜ μ‹€μ‹œκ°„ 둜그 ν™”λ©΄ λ‘œλ“œ | | `a` | μˆ¨κ²¨μ§„ λΉ„ν™œμ„± μ»¨ν…Œμ΄λ„ˆκΉŒμ§€ μ „λΆ€ ν‘œμ‹œ | | `S` / `R` | μ„ νƒλœ μ»¨ν…Œμ΄λ„ˆ μ •μ§€ / μ¦‰μ‹œ μž¬μ‹œμž‘ | #### [lazydocker μ‚¬μš©λ²•] ```powershell lazydocker # 가동 λͺ…λ Ήμ–΄ ``` | 단좕킀 | λ™μž‘ | | :--- | :--- | | `q` | ν”„λ‘œκ·Έλž¨ μ’…λ£Œ | | `↑` `↓` | λͺ©λ‘ νŒ¨λ„ 탐색 | | `Enter` | μ»¨ν…Œμ΄λ„ˆ 상세 둜그 및 μžμ› μ†ŒλΉ„ 톡계 보기 | | `s` / `r` | μ»¨ν…Œμ΄λ„ˆ μΈμŠ€ν„΄μŠ€ μ •μ§€ (Stop) / μž¬μ‹œμž‘ (Restart) | | `e` | μ»¨ν…Œμ΄λ„ˆ λ‚΄λΆ€ 터미널 μ¦‰μ‹œ μ‹€ν–‰ μ§„μž… (Exec) | | `x` | μ»¨ν…Œμ΄λ„ˆ κ°•μ œ 파괴 및 제거 (Remove) | --- [⬅️ 이전: 1. 터미널 관리 & 파일 μœ ν‹Έλ¦¬ν‹°](./WIN-01-TERMINAL-FILE.md) | [🏠 메인 README](../README.md) | [λ‹€μŒ: 3. 개발 μœ ν‹Έλ¦¬ν‹° ➑️](./WIN-03-DEV-UTILS.md)