Zack Saadioui
8/27/2024
1
2
bash
launchctl setenv OLLAMA_HOST "0.0.0.0"
1
2
bash
sudo systemctl edit ollama.service
1
[Service]
1
2
bash
Environment="OLLAMA_HOST=0.0.0.0"
1
2
3
bash
sudo systemctl daemon-reload
sudo systemctl restart ollama
1
environment variables
1
OLLAMA_HOST
1
0.0.0.0
1
ufw
1
2
3
4
5
6
7
bash
curl http://localhost:11434/api/generate
d
{
"model": "llama3.1",
"prompt": "What is the weather today?"
}
1
2
bash
pip install ollama
Copyright © Arsturn 2024