Zack Saadioui
8/26/2024
1ConnectionError: HTTPConnectionPool(host='localhost', port=11434): Max retries exceeded url: /api/generate/
1
http://localhost:114341sudo ufw allow 11434
1Error: unable to connect to host.docker.internal
1docker run --network=host -p 11434:11434 ollama/ollama
1
127.0.0.11
0.0.0.01
2
bash
sudo systemctl edit ollama.service1
2
3
bash
[Service]
Environment="OLLAMA_HOST=0.0.0.0:11434"1
2
3
bash
sudo systemctl daemon-reload
sudo systemctl restart ollama1
~/.ollama/1
2
bash
ping <your-ollama-server-ip>1
http://localhost:114341
curl http://localhost:11434/api/version1
OLLAMA_HOST1
0.0.0.0Copyright © Arsturn 2025