ComfyUI
Linux : stable-diffusion-webui 설치
파란크리스마스
2025. 4. 25. 10:39
728x90
출처
stable-diffusion-webui 설치
[bluesanta@localhost ~]$ cd Applications
[bluesanta@localhost Applications]$ mkdir stable-diffusion
[bluesanta@localhost stable-diffusion]$ git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
python 가상 환경 만들기
[bluesanta@localhost stable-diffusion]$ python3.11 -m venv .venv
python 가상 환경 실행
[bluesanta@localhost stable-diffusion]$ source .venv/bin/activate
(.venv) [bluesanta@localhost stable-diffusion]$
stable-diffusion-webui 실행
(.venv) [bluesanta@localhost stable-diffusion]$ cd stable-diffusion-webui/
(.venv) [bluesanta@localhost stable-diffusion-webui]$ ./webui.sh
Loading weights [6ce0161689] from /home/bluesanta/Applications/stable-diffusion/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Running on local URL: http://127.0.0.1:7860
stable-diffusion-webui 외부 접속 허용
(.venv) [bluesanta@localhost stable-diffusion-webui]$ vi webui-user.sh
export COMMANDLINE_ARGS="--xformers --xformers-flash-attention --share --listen --gradio-auth bluexmas:passwd"
7860 포트 개방
(.venv) [bluesanta@localhost stable-diffusion-webui]$ sudo firewall-cmd --add-port=7860/tcp --permanent
success
(.venv) [bluesanta@localhost stable-diffusion-webui]$ sudo firewall-cmd --reload
success
(.venv) [bluesanta@localhost stable-diffusion-webui]$ sudo firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: enp5s0
sources:
services: cockpit dhcpv6-client ssh
ports: 3389/tcp 7860/tcp
protocols:
forward: yes
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
stable-diffusion-webui 실행
(.venv) [bluesanta@localhost stable-diffusion-webui]$ ./webui.sh
Loading weights [6ce0161689] from /home/bluesanta/Applications/stable-diffusion/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Running on local URL: http://0.0.0.0:7860
728x90