chmod 400 키페어_경로
ssh -i "키페어_경로" ec2-user@EC2-주소.compute.amazonaws.com
git -v
python3 --version # 또는 python --version
conda --version
source activate pytorch
conda config --set auto_activate_base true
cd ~
mkdir ai && cd ~/ai
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ~/ai/ComfyUI
pip install -r requirements.txt
pip install --upgrade pip
cd ~/ai/ComfyUI/custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
cd ~/ai/ComfyUI
python3 main.py
vi run-comfyui.sh
#!/bin/bash
# pytorch 가상 환경 활성화
source activate pytorch
# ComfyUI 폴더 이동
cd /ai/ComfyUI/
# ComfyUI 실행
python3 main.py
chmod +x run-comfyui.sh
./run-comfyui.sh
ssh -L 8188:127.0.0.1:8188 -i "키페어_경로" ec2-user@EC2-주소.compute.amazonaws.com
http://localhost:8188
tmux new -s comfyui
tmux attach -t comfyui
tmux kill-session -t comfyui
세션 나오기 : ctrl + b, d
세션 중 스크롤하기 : ctrl + b, [
스크롤 나오기 : q
https://github.com/comfyanonymous/ComfyUI
https://civitai.com/models
Amazon EBS 볼륨 크기 조정 후 파일 시스템 확장
Amazon EC2 인스턴스 유형 변경