본문 바로가기

카테고리 없음

Exposing ollama port

Open /etc/systemd/system/ollama.service

Add a new environment variable as below.

...
[Service]
...
Environment="OLLAMA_HOST=0.0.0.0:11434

 

After editing the unit file, run

sudo systemctl daemon-reload

 

and

sudo systemctl restart ollama.service

in that order.