JavaScript framework
Reviewed by KimWorks
on
March 09, 2025
Rating: 5

Windows -
Set up an environment variable, OLLAMA_HOST, value 0.0.0.0 or 0.0.0.0:(port) - if you'd like to use different port number. Then restart ollama
Linux -
sudo vi /etc/systemd/system/ollama.service
In [Service] section, add:
Environment="OLLAMA_HOST=0.0.0.0"
$ sudo systemctl daemon-reload
$ sudo systemctl restart ollama
Environment variable, OLLAMA_KEEP_ALIVE to 10 (10 minutes, default is 5 minutes)
Windows - %HOMEPATH%\.ollama\models
Linux - /usr/share/ollama/.ollama/models
Windows - %LOCALAPPDATA%\Ollama
Linux -
sudo journalctl -u ollama.service > ollama_logs.txt
journalctl -e -u ollama
Ubuntu 20 or later with GNOME automatically mounts external USB drives for logged-in console users. However, this feature doesn't work on headless servers. To auto-mount USB drives on a headless server, use this tool:
https://github.com/raamsri/automount-usb
CopyBloggerThemes.com
Created By Themexpose · Powered by Blogger
All rights reserved