Edit /etc/systemd/system/ollama.service (I used nano) Add (under the service category):
Environment=”OLLAMA_HOST=0.0.0.0″
[Unit]
Description=Ollama Service
After=network-online.target
[Service]
Environment="OLLAMA_HOST=0.0.0.0"
Broadcast message from root@jellyfinollama (Mon 2025-06-30 04:03:01 UTC):
User=ollama
The system will reboot at Mon 2025-06-30 04:05:01 UTC!
Restart=always
RestartSec=3
Broadcast message from root@jellyfinollama (Mon 2025-06-30 04:03:01 UTC)::
Start Ollama with the command: ollama serve