feat: add instructions on how to expose ollama on linux
This commit is contained in:
parent
2548f07a8c
commit
be230bc695
1 changed files with 19 additions and 0 deletions
19
expose-ollama.md
Normal file
19
expose-ollama.md
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# Expose ollama on the local network via IP
|
||||||
|
|
||||||
|
1\. Edit the systemd service by calling: `systemctl edit ollama.service`
|
||||||
|
|
||||||
|
2\. Add the following line under the [Service] section:
|
||||||
|
|
||||||
|
```ini
|
||||||
|
[Service]
|
||||||
|
Environment="OLLAMA_HOST=0.0.0.0:11434"
|
||||||
|
```
|
||||||
|
|
||||||
|
3\. Save and exit the editor.
|
||||||
|
|
||||||
|
4\. Reload systemd and restart Ollama:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo systemctl daemon-reload
|
||||||
|
sudo systemctl restart ollama
|
||||||
|
```
|
||||||
Loading…
Reference in a new issue