×

ollama配置允许外网访问

hqy hqy 发表于2025-02-11 17:28:22 浏览12 评论0

抢沙发发表评论

mportant; margin-bottom: 0px !important;">linux系统

    ollama默认只能localhost访问

    如果需要允许外网访问,需要修改环境变量

    vi /etc/profile

    在文件底部加入

    export OLLAMA_HOST=0.0.0.0:11434

    保存

    使环境变量生效

    source /etc/profile

window 系统

    直接在系统环境变量中加入

    OLLAMA_HOST=0.0.0.0:11434


打赏

本文链接:https://www.kinber.cn/post/4792.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

 您阅读本篇文章共花了: 

群贤毕至

访客