{"id":87543,"date":"2026-07-30T14:33:17","date_gmt":"2026-07-30T06:33:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/87543.html"},"modified":"2026-07-30T14:33:17","modified_gmt":"2026-07-30T06:33:17","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e9%83%a8%e7%bd%b2ollama%e3%80%81llm","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/87543.html","title":{"rendered":"\u670d\u52a1\u5668\u4e0a\u90e8\u7f72ollama\u3001LLM"},"content":{"rendered":"<p>\u9996\u5148\u5728\u672c\u5730\u4e0b\u8f7d\u597dOllama<\/p>\n<p>https:\/\/github.com\/ollama\/ollama\/releases\/tag\/v0.17.5<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1445\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063308-6a6af024bf100.png\" width=\"2051\" \/><\/p>\n<p>\u4e0b\u8f7d\u597d\u538b\u7f29\u5305\u4ee5\u540e&#xff0c;\u653e\u5230home\/ubuntu\/<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"908\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063310-6a6af0262f814.png\" width=\"484\" \/><\/p>\n<p>\u8fdb\u5165\u6587\u4ef6\u6240\u5728\u76ee\u5f55<\/p>\n<p>cd \/home\/ubuntu\/ <\/p>\n<p>\u89e3\u538b<\/p>\n<p>tar -I zstd -xvf ollama-linux-amd64.tar.zst <\/p>\n<p>\u79fb\u52a8\u53ef\u6267\u884c\u6587\u4ef6\u5230\u7cfb\u7edf\u76ee\u5f55<\/p>\n<p># \u628a bin\/ollama \u79fb\u52a8\u5230 \/usr\/local\/bin\/&#xff0c;\u8ba9\u7cfb\u7edf\u80fd\u8bc6\u522b ollama \u547d\u4ee4<br \/>\nsudo mv bin\/ollama \/usr\/local\/bin\/ <\/p>\n<p>\u79fb\u52a8\u4f9d\u8d56\u5e93\u5230\u7cfb\u7edf\u76ee\u5f55<\/p>\n<p># \u5148\u521b\u5efa\u7cfb\u7edf\u4f9d\u8d56\u76ee\u5f55&#xff08;\u5982\u679c\u4e0d\u5b58\u5728&#xff09;<br \/>\nsudo mkdir -p \/usr\/local\/lib\/<\/p>\n<p># \u628a\u89e3\u538b\u51fa\u7684 lib\/ollama\/ \u6574\u4e2a\u76ee\u5f55\u79fb\u52a8\u8fc7\u53bb<br \/>\nsudo mv lib\/ollama \/usr\/local\/lib\/ <\/p>\n<p>\u5237\u65b0\u7cfb\u7edf\u5e93\u7f13\u5b58<\/p>\n<p>sudo ldconfig <\/p>\n<p>\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f<\/p>\n<p>ollama &#8211;version <\/p>\n<p>\u5b89\u88c5\u6210\u529f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"208\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063310-6a6af02648a6c.png\" width=\"1351\" \/><\/p>\n<p>\u542f\u52a8 Ollama \u670d\u52a1<\/p>\n<p>\u7ed1\u5b9a GPU 0<\/p>\n<p>export CUDA_VISIBLE_DEVICES&#061;0 <\/p>\n<p>\u540e\u53f0\u542f\u52a8 Ollama \u670d\u52a1&#xff08;\u7aef\u53e3 11434&#xff0c;\u5141\u8bb8\u5916\u90e8\u8bbf\u95ee&#xff09;<\/p>\n<p>nohup ollama serve &#8211;host 0.0.0.0 &#8211;port 11434 &gt; ollama.log 2&gt;&amp;1 &amp; <\/p>\n<p>\u7b49\u5f85\u670d\u52a1\u521d\u59cb\u5316&#xff08;5 \u79d2&#xff09;&#xff0c;\u6d4b\u8bd5\u670d\u52a1\u662f\u5426\u6b63\u5e38<\/p>\n<p>sleep 5<br \/>\ncurl http:\/\/localhost:11434\/v1\/models <\/p>\n<p>\u6b64\u5904\u62a5\u9519<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"249\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063310-6a6af0266c11f.png\" width=\"2542\" \/><\/p>\n<p>\u67e5\u770b\u670d\u52a1\u542f\u52a8\u65e5\u5fd7<\/p>\n<p>cat ollama.log <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"377\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063310-6a6af026b4cad.png\" width=\"1247\" \/><\/p>\n<p>\u539f\u56e0\u662f&#xff1a;\u5b89\u88c5\u7684 Ollama 0.17.5 \u7248\u672c\u4e2d&#xff0c;ollama serve \u547d\u4ee4\u4e0d\u652f\u6301 &#8211;host \u53c2\u6570<\/p>\n<p>\u5148\u6740\u6b7b\u6b8b\u7559\u7684\u65e0\u6548\u8fdb\u7a0b<\/p>\n<p>kill -9 $(pgrep -f &#034;ollama serve&#034;) 2&gt;\/dev\/null <\/p>\n<p>\u7528\u73af\u5883\u53d8\u91cf\u6307\u5b9a\u76d1\u542c\u5730\u5740&#xff08;0.0.0.0&#xff09;&#043; \u540e\u53f0\u542f\u52a8<\/p>\n<p># 1. \u7ed1\u5b9a GPU 0&#xff08;\u9694\u79bb\u73b0\u6709\u670d\u52a1&#xff09;<br \/>\nexport CUDA_VISIBLE_DEVICES&#061;0<\/p>\n<p># 2. \u6307\u5b9a Ollama \u76d1\u542c\u6240\u6709\u5730\u5740&#xff08;0.0.0.0&#xff09;&#xff0c;\u7aef\u53e3 11434&#xff08;\u6838\u5fc3\u4fee\u590d&#xff1a;\u7528\u73af\u5883\u53d8\u91cf\u66ff\u4ee3 &#8211;host&#xff09;<br \/>\nOLLAMA_HOST&#061;0.0.0.0 nohup ollama serve &#8211;port 11434 &gt; ollama.log 2&gt;&amp;1 &amp;<\/p>\n<p># 3. \u7b49\u5f85 10 \u79d2\u8ba9\u670d\u52a1\u5b8c\u5168\u521d\u59cb\u5316&#xff08;\u6bd4 5 \u79d2\u66f4\u7a33&#xff0c;\u907f\u514d\u8fde\u63a5\u8d85\u65f6&#xff09;<br \/>\nsleep 10 <\/p>\n<p>\u6d4b\u8bd5\u670d\u52a1\u662f\u5426\u542f\u52a8\u6210\u529f<\/p>\n<p>curl http:\/\/localhost:11434\/v1\/models <\/p>\n<p>\u8fd8\u662f\u4f1a\u62a5\u9519&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"192\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063310-6a6af026e73e1.png\" width=\"2521\" \/><\/p>\n<p>\u67e5\u770b\u9519\u8bef\u65e5\u5fd7<\/p>\n<p>cat ollama.log <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"206\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063311-6a6af02730823.png\" width=\"1385\" \/><\/p>\n<p>Ollama 0.17.5 \u7248\u672c\u65e2\u4e0d\u652f\u6301 &#8211;host&#xff0c;\u4e5f\u4e0d\u652f\u6301 &#8211;port \u53c2\u6570&#xff0c;\u5fc5\u987b\u901a\u8fc7\u73af\u5883\u53d8\u91cf OLLAMA_HOST \u548c OLLAMA_PORT \u6765\u914d\u7f6e&#xff0c;\u547d\u4ee4\u4e2d\u4e0d\u80fd\u5e26\u4efb\u4f55\u53c2\u6570\u3002<\/p>\n<p>\u5148\u6740\u6b7b\u6b8b\u7559\u7684\u65e0\u6548\u8fdb\u7a0b<\/p>\n<p>kill -9 $(pgrep -f &#034;ollama serve&#034;) 2&gt;\/dev\/null <\/p>\n<p>\u7528\u73af\u5883\u53d8\u91cf\u6307\u5b9a\u5730\u5740\u548c\u7aef\u53e3&#xff0c;\u542f\u52a8\u670d\u52a1<\/p>\n<p># 1. \u7ed1\u5b9a GPU 0&#xff08;\u9694\u79bb\u73b0\u6709\u670d\u52a1&#xff09;<br \/>\nexport CUDA_VISIBLE_DEVICES&#061;0<\/p>\n<p># 2. \u7528\u73af\u5883\u53d8\u91cf\u6307\u5b9a\u76d1\u542c\u5730\u5740&#xff08;0.0.0.0&#xff09;\u548c\u7aef\u53e3&#xff08;11434&#xff09;&#xff0c;\u542f\u52a8\u670d\u52a1&#xff08;\u6838\u5fc3\u4fee\u590d&#xff1a;ollama serve \u540e\u4e0d\u5e26\u4efb\u4f55\u53c2\u6570&#xff09;<br \/>\nOLLAMA_HOST&#061;0.0.0.0 OLLAMA_PORT&#061;11434 nohup ollama serve &gt; ollama.log 2&gt;&amp;1 &amp;<\/p>\n<p># 3. \u7b49\u5f85 10 \u79d2\u8ba9\u670d\u52a1\u5b8c\u5168\u521d\u59cb\u5316<br \/>\nsleep 10 <\/p>\n<p>\u6d4b\u8bd5\u670d\u52a1\u662f\u5426\u542f\u52a8\u6210\u529f<\/p>\n<p>curl http:\/\/localhost:11434\/v1\/models <\/p>\n<p>ollama\u670d\u52a1\u542f\u52a8\u6210\u529f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"219\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063311-6a6af02753a3a.png\" width=\"1858\" \/><\/p>\n<p>\u4e8c\u3001\u90e8\u7f72LLM<\/p>\n<p>\u672c\u5730\u5b89\u88c5ollama<\/p>\n<p>https:\/\/ollama.com\/download\/windows<\/p>\n<p>\u70b9\u51fb\u4e0b\u4e00\u6b65\u5b89\u88c5\u5b8c\u6210<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1303\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063311-6a6af0278488b.png\" width=\"1587\" \/><\/p>\n<p>\u6267\u884c ollama &#8211;version&#xff0c;\u8f93\u51fa\u7248\u672c\u53f7\u5373\u6210\u529f\u3002<\/p>\n<p>\u672c\u5730\u4e0b\u8f7d Qwen2-32B \u6a21\u578b<\/p>\n<p>\u5728\u672c\u5730\u7ec8\u7aef \/ CMD \u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/p>\n<p># \u63a8\u8350&#xff1a;\u62c9\u53d6 Qwen2.5-32B \u9ed8\u8ba4 Q4_K_M \u91cf\u5316\u7248&#xff08;\u7ea614GB&#xff0c;\u663e\u5b58\u9700\u6c42&lt;20GB&#xff09;<br \/>\nollama pull qwen2.5:32b-instruct<\/p>\n<p>\u6267\u884c ollama list&#xff0c;\u7ec8\u7aef\u4f1a\u663e\u793a qwen2.5:32b-instruct<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"187\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063312-6a6af02866929.png\" width=\"1433\" \/><\/p>\n<p>\u8fd9\u91cc\u63a8\u8350\u4e00\u6b3e\u914d\u5408ollama\u505a\u7684\u670d\u52a1&#xff0c;\u6bd4\u8f83\u65b9\u4fbf<\/p>\n<p>Open WebUI<\/p>\n<p>\u9996\u5148\u786e\u4fdd\u672c\u5730\u6709docker<\/p>\n<p>\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u6253\u5f00 CMD&#xff0c;\u6267\u884c\u4e00\u952e\u542f\u52a8\u547d\u4ee4&#xff1a;<\/p>\n<p>docker run -d -p 3000:3000 -v open-webui:\/app\/backend\/data -v C:\\\\Users\\\\\u672c\u5730\u5730\u5740\\\\.ollama:\/root\/.ollama &#8211;add-host&#061;host.docker.internal:host-gateway ghcr.io\/open-webui\/open-webui:main <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"848\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063312-6a6af02886dd9.png\" width=\"1693\" \/><\/p>\n<p>Open WebUI \u5fc5\u987b\u4f9d\u8d56\u672c\u5730\u8fd0\u884c\u7684 Ollama \u670d\u52a1&#xff0c;\u5148\u5728\u65b0\u7684 CMD \u7a97\u53e3\u6267\u884c<\/p>\n<p>ollama serve <\/p>\n<p>\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee http:\/\/localhost:3000&#xff0c;\u9996\u6b21\u6ce8\u518c\u8d26\u53f7\u540e\u5373\u53ef\u4f7f\u7528&#xff1b;<\/p>\n<ul>\n<li>\u82e5\u63d0\u793a Error: listen tcp 127.0.0.1:11434: bind: address already in use&#xff0c;\u8bf4\u660e Ollama \u5df2\u5728\u540e\u53f0\u8fd0\u884c&#xff0c;\u65e0\u9700\u91cd\u590d\u542f\u52a8&#xff1b;<\/li>\n<li>\u82e5\u6b63\u5e38\u542f\u52a8&#xff0c;\u7ec8\u7aef\u4f1a\u663e\u793a Ollama is running&#xff0c;\u4fdd\u6301\u8be5\u7a97\u53e3\u4e0d\u8981\u5173\u95ed\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"259\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063313-6a6af0297cb53.png\" width=\"2280\" \/><\/p>\n<p>Only one usage of each socket address is normally permitted&#xff0c;\u8bf4\u660e Ollama \u6838\u5fc3\u670d\u52a1\u5df2\u5728 Windows \u540e\u53f0\u81ea\u52a8\u542f\u52a8&#xff0c;\u65e0\u9700\u624b\u52a8\u6267\u884c ollama serve&#xff0c;\u8fd9\u662f Windows \u7248 Ollama \u7684\u9ed8\u8ba4\u884c\u4e3a&#xff0c;\u76f4\u63a5\u8fdb\u884c\u6a21\u578b\u4e0b\u8f7d\u5373\u53ef\u3002<\/p>\n<p>\u5728 CMD \u4e2d\u6267\u884c<\/p>\n<p>docker ps -a <\/p>\n<p>IMAGE \u5217\u4e3a ghcr.io\/open-webui\/open-webui:main \u7684\u90a3\u4e00\u884c&#xff0c;\u590d\u5236\u5b83\u7684 CONTAINER ID&#xff08;\u901a\u5e38\u662f\u4e00\u4e32 16 \u4f4d\u7684\u5b57\u7b26&#xff0c;\u5982 97105bae4b23&#xff09;\u3002<\/p>\n<p>\u505c\u6b62\u5e76\u5220\u9664\u65e7\u5bb9\u5668<\/p>\n<p>\u5728 CMD \u4e2d\u6267\u884c\u4ee5\u4e0b\u4e24\u6761\u547d\u4ee4&#xff0c;\u5c06 &lt;\u5bb9\u5668ID&gt; \u66ff\u6362\u4e3a\u4f60\u521a\u624d\u590d\u5236\u7684\u5bb9\u5668 ID&#xff1a;<\/p>\n<p>docker stop &lt;\u5bb9\u5668ID&gt;<br \/>\ndocker rm &lt;\u5bb9\u5668ID&gt; <\/p>\n<p>\u91cd\u65b0\u542f\u52a8 Open WebUI \u5bb9\u5668<\/p>\n<p>\u52a1\u5fc5\u5c06 192.168.1.100 \u66ff\u6362\u4e3a\u4f60\u5728\u6b65\u9aa4 1 \u4e2d\u627e\u5230\u7684\u672c\u5730 IPv4 \u5730\u5740<\/p>\n<p>docker run -d -p 3000:3000 ^<br \/>\n  -v open-webui:\/app\/backend\/data ^<br \/>\n  -v C:\\\\Users\\\\\u5343\u777f\u667a\u6c47\\\\.ollama:\/root\/.ollama ^<br \/>\n  -e OLLAMA_API_BASE_URL&#061;http:\/\/192.168.1.100:11434 ^<br \/>\n  &#8211;add-host&#061;host.docker.internal:host-gateway ^<br \/>\n  ghcr.io\/open-webui\/open-webui:main <\/p>\n<p>\u7136\u540e\u8bbf\u95ee&#xff1a;<\/p>\n<p>\u00a0http:\/\/localhost:3000<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"834\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063313-6a6af029da46a.png\" width=\"1082\" \/><\/p>\n<p>\u8fd9\u65f6\u5019\u8fd8\u662f\u6ca1\u6709\u529e\u6cd5\u8dd1\u8d77\u6765<\/p>\n<p>\u5bb9\u5668\u867d\u7136\u542f\u52a8\u4e86&#xff0c;\u4f46\u5185\u90e8\u670d\u52a1\u53ef\u80fd\u6ca1\u8dd1\u8d77\u6765\u3002\u5148\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u67e5\u770b\u5bb9\u5668\u7684\u8be6\u7ec6\u65e5\u5fd7<\/p>\n<p>docker logs &lt;\u65b0\u5bb9\u5668ID&gt; <\/p>\n<p>\u663e\u793a\u65e5\u5fd7\u91cc\u9762\u662f\u542f\u52a8\u9648\u5de5\u4e86<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1080\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063314-6a6af02a3fd5f.png\" width=\"2270\" \/><\/p>\n<p>\u65e5\u5fd7\u91cc\u660e\u786e\u663e\u793a&#xff1a;<\/p>\n<ul>\n<li>Started server process [1] \u2192 Web \u670d\u52a1\u5df2\u542f\u52a8<\/li>\n<li>Waiting for application startup \u2192 \u670d\u52a1\u6b63\u5728\u7b49\u5f85\u8bf7\u6c42<\/li>\n<li>\u6ca1\u6709\u51fa\u73b0\u8fde\u63a5 Ollama \u7684\u9519\u8bef \u2192 \u5bb9\u5668\u5df2\u80fd\u6b63\u5e38\u8fde\u63a5 Ollama<\/li>\n<\/ul>\n<p>\u9875\u9762\u6253\u4e0d\u5f00&#xff0c;\u5927\u6982\u7387\u662f\u8bbf\u95ee\u5730\u5740\u6216\u9632\u706b\u5899\u7684\u95ee\u9898&#xff0c;\u6309\u4ee5\u4e0b\u6b65\u9aa4\u6392\u67e5&#xff1a;<\/p>\n<p>\u786e\u8ba4\u7aef\u53e3\u6620\u5c04\u662f\u5426\u6b63\u786e<\/p>\n<p>docker ps <\/p>\n<p>\u770b PORTS \u5217&#xff0c;\u5e94\u8be5\u663e\u793a&#xff1a;<\/p>\n<p>0.0.0.0:3000-&gt;3000\/tcp <\/p>\n<p>\u5982\u679c\u662f\u8fd9\u6837&#xff0c;\u8bf4\u660e\u5bb9\u5668\u7684 3000 \u7aef\u53e3\u5df2\u7ecf\u6b63\u786e\u6620\u5c04\u5230\u5bbf\u4e3b\u673a\u7684 3000 \u7aef\u53e3\u3002<\/p>\n<p>\u7528 localhost \u8bbf\u95ee<\/p>\n<p>\u6253\u5f00\u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95ee&#xff1a;<\/p>\n<p>http:\/\/localhost:3000 <\/p>\n<h4><\/h4>\n<p>\u6253\u5f00\u65b0\u7684 CMD \u7a97\u53e3&#xff0c;\u6267\u884c&#xff1a;<\/p>\n<p>curl http:\/\/localhost:3000 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"134\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063315-6a6af02b67d7e.png\" width=\"1441\" \/><\/p>\n<p>\u6838\u5fc3\u95ee\u9898&#xff1a;\u7aef\u53e3\u6620\u5c04\u641e\u53cd\u4e86&#xff01;<\/p>\n<p>\u5148\u505c\u6b62\u5e76\u5220\u9664\u65e7\u5bb9\u5668&#xff08;\u66ff\u6362 &lt;\u5bb9\u5668ID&gt; \u4e3a\u5f53\u524d\u8fd0\u884c\u7684\u5bb9\u5668 ID&#xff09;&#xff1a;<\/p>\n<p>docker stop &lt;\u5bb9\u5668ID&gt;<br \/>\ndocker rm &lt;\u5bb9\u5668ID&gt; <\/p>\n<p>\u7528\u6b63\u786e\u7684\u7aef\u53e3\u6620\u5c04\u91cd\u65b0\u542f\u52a8\u5bb9\u5668<\/p>\n<p>docker run -d -p 3000:8080 ^<br \/>\n  -v open-webui:\/app\/backend\/data ^<br \/>\n  -v C:\\\\Users\\\\\u672c\u5730\u5730\u5740\\\\.ollama:\/root\/.ollama ^<br \/>\n  -e OLLAMA_API_BASE_URL&#061;http:\/\/192.168.2.193:11434 ^<br \/>\n  &#8211;add-host&#061;host.docker.internal:host-gateway ^<br \/>\n  ghcr.io\/open-webui\/open-webui:main <\/p>\n<p>\u7b49\u5f85 10 \u79d2&#xff0c;\u518d\u7528 curl \u6d4b\u8bd5&#xff1a;<\/p>\n<p>curl http:\/\/localhost:3000 <\/p>\n<p>\u4fee\u590d\u540e&#xff0c;\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee&#xff1a;<\/p>\n<p>http:\/\/localhost:3000 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"927\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063315-6a6af02b8302a.png\" width=\"1775\" \/><\/p>\n<p>\u6700\u540e\u628a\u538b\u7f29\u5305\u4e0a\u4f20LLM\u5230\u670d\u52a1\u5668\u4e0a\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4<\/p>\n<p># 1. \u8fdb\u5165\u7528\u6237\u76ee\u5f55<br \/>\ncd \/home\/ubuntu\/<\/p>\n<p># 2. \u786e\u4fdd Ollama \u76ee\u5f55\u5b58\u5728<br \/>\nmkdir -p ~\/.ollama\/<\/p>\n<p># 3. \u89e3\u538b\u6a21\u578b\u6587\u4ef6\u5230 Ollama \u76ee\u5f55<br \/>\n# \u5982\u679c\u662f rar \u683c\u5f0f&#xff0c;\u9700\u8981\u5148\u5b89\u88c5 unrar<br \/>\nsudo apt update &amp;&amp; sudo apt install -y unrar<br \/>\nunrar x models.rar ~\/.ollama\/<\/p>\n<p># \u5982\u679c\u662f zip \u683c\u5f0f&#xff0c;\u4f7f\u7528 unzip<br \/>\n# unzip models.zip -d ~\/.ollama\/ <\/p>\n<p>\u542f\u52a8 Ollama \u670d\u52a1<\/p>\n<p># \u6740\u6b7b\u53ef\u80fd\u5b58\u5728\u7684\u65e7\u8fdb\u7a0b<br \/>\npkill ollama<\/p>\n<p># \u542f\u52a8 Ollama \u670d\u52a1&#xff0c;\u76d1\u542c\u6240\u6709\u5730\u5740<br \/>\nOLLAMA_HOST&#061;0.0.0.0 OLLAMA_PORT&#061;11434 nohup ollama serve &gt; ollama.log 2&gt;&amp;1 &amp; <\/p>\n<p>\u9a8c\u8bc1\u6a21\u578b\u52a0\u8f7d\u6210\u529f<\/p>\n<p># \u67e5\u770b\u672c\u5730\u5df2\u6709\u7684\u6a21\u578b<br \/>\nollama list <\/p>\n<p>\u6a21\u578b\u90e8\u7f72\u6210\u529f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"568\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063316-6a6af02c23f85.png\" width=\"1971\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u5728\u672c\u5730\u4e0b\u8f7d\u597dOllama<br \/>\nhttps:\/\/github.com\/ollama\/ollama\/releases\/tag\/v0.17.5 \u4e0b\u8f7d\u597d\u538b\u7f29\u5305\u4ee5\u540e&#xff0c;\u653e\u5230home\/ubuntu\/ \u8fdb\u5165\u6587\u4ef6\u6240\u5728\u76ee\u5f55<br \/>\ncd \/home\/ubuntu\/<br \/>\n\u89e3\u538b<br \/>\ntar -I zstd -xvf ollama-linux-amd64.tar.zst<br \/>\n\u79fb\u52a8\u53ef\u6267\u884c\u6587\u4ef6\u5230\u7cfb\u7edf\u76ee\u5f55<br \/>\n# \u628a bin\/ollama \u79fb\u52a8\u5230 \/usr\/local\/bin\/&#xff0c;\u8ba9\u7cfb\u7edf\u80fd\u8bc6\u522b<\/p>\n","protected":false},"author":2,"featured_media":87526,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-87543","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u670d\u52a1\u5668\u4e0a\u90e8\u7f72ollama\u3001LLM - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/87543.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u670d\u52a1\u5668\u4e0a\u90e8\u7f72ollama\u3001LLM - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148\u5728\u672c\u5730\u4e0b\u8f7d\u597dOllama https:\/\/github.com\/ollama\/ollama\/releases\/tag\/v0.17.5 \u4e0b\u8f7d\u597d\u538b\u7f29\u5305\u4ee5\u540e&#xff0c;\u653e\u5230home\/ubuntu\/ \u8fdb\u5165\u6587\u4ef6\u6240\u5728\u76ee\u5f55 cd \/home\/ubuntu\/ \u89e3\u538b tar -I zstd -xvf ollama-linux-amd64.tar.zst \u79fb\u52a8\u53ef\u6267\u884c\u6587\u4ef6\u5230\u7cfb\u7edf\u76ee\u5f55 # \u628a bin\/ollama \u79fb\u52a8\u5230 \/usr\/local\/bin\/&#xff0c;\u8ba9\u7cfb\u7edf\u80fd\u8bc6\u522b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/87543.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-30T06:33:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063308-6a6af024bf100.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/87543.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/87543.html\",\"name\":\"\u670d\u52a1\u5668\u4e0a\u90e8\u7f72ollama\u3001LLM - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-30T06:33:17+00:00\",\"dateModified\":\"2026-07-30T06:33:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/87543.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/87543.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/87543.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u670d\u52a1\u5668\u4e0a\u90e8\u7f72ollama\u3001LLM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u670d\u52a1\u5668\u4e0a\u90e8\u7f72ollama\u3001LLM - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/87543.html","og_locale":"zh_CN","og_type":"article","og_title":"\u670d\u52a1\u5668\u4e0a\u90e8\u7f72ollama\u3001LLM - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u9996\u5148\u5728\u672c\u5730\u4e0b\u8f7d\u597dOllama https:\/\/github.com\/ollama\/ollama\/releases\/tag\/v0.17.5 \u4e0b\u8f7d\u597d\u538b\u7f29\u5305\u4ee5\u540e&#xff0c;\u653e\u5230home\/ubuntu\/ \u8fdb\u5165\u6587\u4ef6\u6240\u5728\u76ee\u5f55 cd \/home\/ubuntu\/ \u89e3\u538b tar -I zstd -xvf ollama-linux-amd64.tar.zst \u79fb\u52a8\u53ef\u6267\u884c\u6587\u4ef6\u5230\u7cfb\u7edf\u76ee\u5f55 # \u628a bin\/ollama \u79fb\u52a8\u5230 \/usr\/local\/bin\/&#xff0c;\u8ba9\u7cfb\u7edf\u80fd\u8bc6\u522b","og_url":"https:\/\/www.wsisp.com\/helps\/87543.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-30T06:33:17+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260730063308-6a6af024bf100.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/87543.html","url":"https:\/\/www.wsisp.com\/helps\/87543.html","name":"\u670d\u52a1\u5668\u4e0a\u90e8\u7f72ollama\u3001LLM - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-30T06:33:17+00:00","dateModified":"2026-07-30T06:33:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/87543.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/87543.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/87543.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u670d\u52a1\u5668\u4e0a\u90e8\u7f72ollama\u3001LLM"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/87543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=87543"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/87543\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/87526"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=87543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=87543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=87543"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=87543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}