
Ubuntu에서 ComfyUI를 설치하는 방법( NVIDIA GPU 기준)
권장 사양
Python 3.12
| GPU | VRAM | CPU | RAM | Storage |
| A100 | 40GB | 16 vCPU | 64GB | 200GB NVMe |
GCP기준 : a2-highgpu-1g (NVIDIA A100 40GB) 또는 NVIDIA L40 이상
스팟(Preemptible) 인스턴스 활용하면 비용절감
설치 가이드 꼭 참조바람
https://comfyui-wiki.com/ko/install/install-comfyui/install-comfyui-on-linux
Python설치
sudo apt update
sudo apt install -y git python3.12 python3.12-venv python3-pip
python3 -m venv comfy
source comfy/bin/activate
ComfyUI 다운로드
cd ~
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
PyTorch 설치
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130
nvidia-smi # CUDA 버전 확인
CUDA 11.x → cu118
CUDA 12.x → cu121
"Torch not compiled with CUDA enabled" 에러발생시 torch삭제후 재설치
pip uninstall torch
pip install -r requirements.txt #필요한 라이브러리 설치
ComfyUI 실행
~/ComfyUI/main.py 파일이 있는지 확인하고 이 파일을 실행
# 1. ComfyUI 설치 경로로 이동 (예: ~/ComfyUI)
cd ~/ComfyUI
# 2. 가상 환경 활성화 (설치 시 만든 comfy)
source comfy/bin/activate
# 3. 실행 전용 스크립트 실행
python main.py --listen 0.0.0.0 # 모든 IP의 접속을 허용
방화벽규칙에서 8188 포트를 외부로 개방
외부IP확인후 http://[외부_IP]:8188로 접속
SSO을 구현하려면 GCP IAP (Identity-Aware Proxy) 사용
- 외부 사용자가 VM에 접근할 때 Google 클라우드가 먼저 인증을 수행하고, 권한이 있는 사용자만 ComfyUI로 연결합니다.
- IAP는 반드시 HTTPS Load Balancer를 거쳐야 하므로, 사용자가 설정한 도메인 주소를 사용하게 됩니다.

https://www.youtube.com/shorts/kGZzgWjYc30
'멀티모달' 카테고리의 다른 글
| ComfyUI 체크포인트 다운로드 (0) | 2026.01.24 |
|---|---|
| ComfyUI 적용 실제 사례 (0) | 2026.01.24 |
| ComfyUI 강의 링크 (0) | 2026.01.24 |
| Stability Matrix (ComfyUI, Stable Diffusion WebUI) 설치 (0) | 2026.01.24 |
| ComfyUI 설치(Google Colab) (0) | 2026.01.24 |