728x90

python3.11 설치

bluesanta@ubuntu:~/llm$ sudo apt install python3.11 python3.11-venv

가상환경 만들기

bluesanta@bluesanta-AI-Series:~$ cd llm
bluesanta@bluesanta-AI-Series:~/llm$ python3 -m venv .ui-env
bluesanta@bluesanta-AI-Series:~/llm$ source .ui-env/bin/activate
(.ui-env) bluesanta@bluesanta-AI-Series:~/llm$ 

open-webui 설치

(.ui-env) bluesanta@bluesanta-AI-Series:~/llm$ pip install --upgrade pip
(.ui-env) bluesanta@bluesanta-AI-Series:~/llm$ pip install open-webui

서비스 파일 생성

(.ui-env) bluesanta@bluesanta-AI-Series:~/llm$ sudo vi /etc/systemd/system/open-webui.service
[Unit]
Description=Open WebUI Service
After=network.target

[Service]
Type=simple
# 실제 시스템 계정 이름으로 수정 (예: bluesanta)
User=bluesanta
Group=bluesanta

# Open WebUI 데이터가 저장될 경로
WorkingDirectory=/home/bluesanta/llm
# 가상환경 내의 open-webui 실행 파일 경로 확인 필수
ExecStart=/home/bluesanta/llm/.ui-env/bin/open-webui serve

# 환경 변수 설정
Environment=PYTHONPATH=/home/bluesanta/llm/.ui-env
Environment=PORT=8080
# vLLM 서버가 이미 실행 중이라면 기본 연결 주소 설정 (선택)
Environment=OPENAI_API_BASE_URL=http://192.168.0.237:8000/v1
Environment=OPENAI_API_KEY=none

Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

서비스 등록

(.ui-env) bluesanta@bluesanta-AI-Series:~/llm$ sudo systemctl enable open-webui.service
Created symlink /etc/systemd/system/multi-user.target.wants/open-webui.service → /etc/systemd/system/open-webui.service.

서비스 실행

(.ui-env) bluesanta@bluesanta-AI-Series:~/llm$ sudo systemctl start open-webui

서비스 상태 확인

(.ui-env) bluesanta@bluesanta-AI-Series:~/llm$ sudo systemctl status open-webui
● open-webui.service - Open WebUI Service
     Loaded: loaded (/etc/systemd/system/open-webui.service; enabled; preset: enabled)
     Active: active (running) since Thu 2026-05-07 23:54:12 KST; 28s ago
   Main PID: 9094 (open-webui)
      Tasks: 83 (limit: 73866)
     Memory: 716.5M (peak: 716.9M)
        CPU: 12.000s
     CGroup: /system.slice/open-webui.service
             └─9094 /home/bluesanta/llm/.ui-env/bin/python3 /home/bluesanta/llm/.ui-env/bin/open-webui serve

 5월 07 23:54:17 bluesanta-AI-Series open-webui[9094]: ------------------------+------------+--+-
 5월 07 23:54:17 bluesanta-AI-Series open-webui[9094]: embeddings.position_ids | UNEXPECTED |  |
 5월 07 23:54:17 bluesanta-AI-Series open-webui[9094]: Notes:
 5월 07 23:54:17 bluesanta-AI-Series open-webui[9094]: - UNEXPECTED:        can be ignored when loading from different task/architecture; not ok if you expect identical arch.
 5월 07 23:54:18 bluesanta-AI-Series open-webui[9094]: INFO:     Started server process [9094]
 5월 07 23:54:18 bluesanta-AI-Series open-webui[9094]: INFO:     Waiting for application startup.
 5월 07 23:54:18 bluesanta-AI-Series open-webui[9094]: 2026-05-07 23:54:18.351 | INFO     | open_webui.utils.logger:start_logger:194 - GLOBAL_LOG_LEVEL: INFO
 5월 07 23:54:18 bluesanta-AI-Series open-webui[9094]: 2026-05-07 23:54:18.351 | INFO     | open_webui.main:lifespan:659 - Installing external dependencies of functions and tools...
 5월 07 23:54:18 bluesanta-AI-Series open-webui[9094]: 2026-05-07 23:54:18.362 | INFO     | open_webui.utils.plugin:install_frontmatter_requirements:407 - No requirements found in fro>
 5월 07 23:54:18 bluesanta-AI-Series open-webui[9094]: 2026-05-07 23:54:18.362 | INFO     | open_webui.utils.automations:scheduler_worker_loop:172 - Scheduler worker started (poll int>
728x90

+ Recent posts