在ubuntu上安装WebUI后,我收到“Ollama版本:未检测到”和“打开WebUI:服务器连接错误”,其中:
继续设置>常规>Ollama api url我有:http://localhost:11434/api 跑步
去http://127.0.0.1:11434/我得到提示: 我试过这样做:https://github.com/ollama/ollama/blob/main/docs/faq.md#setting-environment-variables-on-linux这样做 ### Editing /etc/systemd/system/ollama.service.d/override.conf
### Anything between here and the comment below will become the new contents of the file
[Unit]
Environment='OLLAMA_HOST=0.0.0.0:11434'
Environment='OLLAMA_ORIGINS=*'
### Lines below this comment will be discarded
### /etc/systemd/system/ollama.service
# [Unit]
# Description=Ollama Service
# After=network-online.target
#
# [Service]
# ExecStart=/usr/local/bin/ollama serve
# User=ollama
# Group=ollama
# Restart=always
# RestartSec=3
# Environment='PATH=/home/myuser/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin'
#
# [Install]
# WantedBy=default.target
我还尝试过:
如果我使用卷曲: 同一网络上的不同设备卷曲 同一装置卷曲 同一装置卷曲 Curl inside docker
<!DOCTYPE HTML PUBLIC '-//IETF//DTD HTML 2.0//EN'>
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.52 (Ubuntu) Server at host.ernal Port 80</address>
</body></html>
有人能告诉我该怎么做才能解决这个问题吗? |
|