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