{"id":121690,"date":"2026-11-03T11:16:47","date_gmt":"2026-11-03T03:16:47","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/121690.html"},"modified":"2026-11-03T11:16:47","modified_gmt":"2026-11-03T03:16:47","slug":"ollama%e5%8d%b8%e8%bd%bd%e4%b8%8e%e9%87%8d%e6%96%b0%e9%83%a8%e7%bd%b2%e5%ae%9e%e6%93%8d%ef%bc%88%e9%80%82%e5%90%88windows%e5%92%8clinux%e7%b3%bb%e7%bb%9f%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/121690.html","title":{"rendered":"Ollama\u5378\u8f7d\u4e0e\u91cd\u65b0\u90e8\u7f72\u5b9e\u64cd\uff08\u9002\u5408Windows\u548cLinux\u7cfb\u7edf\uff09"},"content":{"rendered":"<p>\u6211\u5199\u8fd9\u7bc7\u7b14\u8bb0\u7684\u8d77\u56e0\u5f88\u6734\u7d20&#xff1a;C \u76d8\u88ab\u6a21\u578b\u6587\u4ef6\u5403\u6389\u5feb 60G&#xff0c;\u60f3\u6e05\u7406\u7684\u65f6\u5019\u624d\u53d1\u73b0&#xff0c;&#034;\u5378\u8f7d Ollama&#034;\u8fd9\u4ef6\u4e8b\u538b\u6839\u6ca1\u6709\u60f3\u8c61\u4e2d\u90a3\u4e48\u7b80\u5355\u3002<\/p>\n<p>\u5728\u8bbe\u7f6e\u91cc\u70b9\u4e86\u5378\u8f7d&#xff0c;\u56de\u5934\u6572\u4e00\u53e5 ollama list&#xff0c;\u6a21\u578b\u8fd8\u5728\u3002\u624b\u52a8\u5220\u4e86\u6a21\u578b\u76ee\u5f55&#xff0c;\u624b\u4e00\u6296\u53c8\u6267\u884c\u4e86 ollama serve&#xff0c;\u670d\u52a1\u5c45\u7136\u8fd8\u80fd\u8d77\u6765\u3002\u6298\u817e\u534a\u5929\u624d\u60f3\u660e\u767d&#xff0c;Ollama \u4e0d\u662f\u90a3\u79cd&#034;\u88c5\u5728\u4e00\u4e2a\u6587\u4ef6\u5939\u91cc\u3001\u5220\u4e86\u5c31\u6ca1&#034;\u7684\u8f6f\u4ef6&#xff0c;\u5b83\u5728\u7cfb\u7edf\u91cc\u6563\u7740\u597d\u51e0\u5c42\u4e1c\u897f&#xff0c;\u4efb\u4f55\u4e00\u5c42\u6ca1\u6e05\u5e72\u51c0&#xff0c;\u4f60\u90fd\u4f1a\u6000\u7591\u81ea\u5df1\u662f\u4e0d\u662f\u5378\u8f7d\u5931\u8d25\u4e86\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u6211\u81ea\u5df1\u8d70\u4e86\u4e00\u904d\u7684\u5b8c\u6574\u6d41\u7a0b&#xff0c;Windows\u3001Linux \u90fd\u8986\u76d6\u5230\u4e86&#xff0c;\u6700\u540e\u518d\u8bb2\u91cd\u88c5\u4ee5\u540e\u6700\u8be5\u5148\u505a\u7684\u4e00\u4ef6\u4e8b\u3002<\/p>\n<h3>\u4e00\u3001\u52a8\u624b\u4e4b\u524d&#xff0c;\u5148\u770b\u6e05 Ollama \u7559\u4e86\u51e0\u644a\u4e1c\u897f<\/h3>\n<p>\u5f88\u591a\u4eba\u5378\u8f7d\u7ffb\u8f66&#xff0c;\u662f\u4ece\u7b2c\u4e00\u6b65\u5c31\u5220\u9519\u4e86\u5730\u65b9\u3002Ollama \u7684\u5b89\u88c5\u5b9e\u9645\u4e0a\u5206\u6210\u4e86\u56db\u5757&#xff0c;\u5f04\u6e05\u695a\u8fd9\u56db\u5757&#xff0c;\u540e\u9762\u6bcf\u4e00\u6b65\u6e05\u7406\u624d\u6709\u610f\u4e49\u3002<\/p>\n<p>\u7a0b\u5e8f\u672c\u4f53\u3002Windows \u4e0a\u662f\u5b89\u88c5\u5305\u88c5\u51fa\u6765\u7684\u7a0b\u5e8f\u76ee\u5f55&#xff0c;Linux \u4e0a\u662f \/usr\/local\/bin\/ollama \u8fd9\u4e48\u4e00\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002\u5b83\u662f\u771f\u6b63\u8dd1\u63a8\u7406\u7684\u670d\u52a1\u7aef&#xff0c;\u542f\u52a8\u540e\u5728\u672c\u673a\u76d1\u542c 127.0.0.1:11434\u3002<\/p>\n<p>\u547d\u4ee4\u884c\u5de5\u5177\u548c PATH\u3002Windows \u5b89\u88c5\u5305\u4f1a\u987a\u624b\u628a Ollama \u7684\u8def\u5f84\u5199\u8fdb\u73af\u5883\u53d8\u91cf\u3002\u7a0b\u5e8f\u672c\u4f53\u5373\u4f7f\u5220\u4e86&#xff0c;PATH \u91cc\u90a3\u6761\u6307\u5411\u8fd8\u5728&#xff0c;\u4f60\u5728\u7ec8\u7aef\u6572 ollama \u7167\u6837\u6709\u53cd\u5e94&#xff0c;\u53ea\u4e0d\u8fc7\u662f\u4e2a\u62a5\u9519\u7684&#034;\u6b7b\u547d\u4ee4&#034;\u3002\u4e0d\u4e86\u89e3\u8fd9\u4e00\u5c42\u7684\u4eba&#xff0c;\u5e38\u5e38\u8bef\u4ee5\u4e3a\u5378\u8f7d\u5931\u8d25\u3002<\/p>\n<p>\u540e\u53f0\u670d\u52a1\u3002Windows \u9760\u6258\u76d8\u7a0b\u5e8f\u548c\u5f00\u673a\u542f\u52a8\u9879&#xff0c;Linux \u8d70 systemd\u3002\u670d\u52a1\u6ca1\u505c&#xff0c;\u8fdb\u7a0b\u5c31\u5728&#xff0c;\u6587\u4ef6\u53e5\u67c4\u8fd8\u88ab\u5360\u7740\u3002<\/p>\n<p>\u6a21\u578b\u4ed3\u5e93\u548c\u7f13\u5b58\u3002\u8fd9\u662f\u5360\u7a7a\u95f4\u7684\u5927\u5934&#xff0c;\u9ed8\u8ba4\u4f4d\u7f6e\u6709\u4e24\u4e2a&#xff1a;<\/p>\n<ul>\n<li>Windows&#xff1a;C:\\\\Users\\\\&lt;\u4f60\u7684\u7528\u6237\u540d&gt;\\\\.ollama\\\\models<\/li>\n<li>Linux \u7528\u5b98\u65b9\u811a\u672c\u5b89\u88c5\u65f6&#xff1a;\/usr\/share\/ollama\/.ollama\/models<\/li>\n<\/ul>\n<p>\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u9762\u5206 blobs \u548c manifests \u4e24\u5c42\u3002blobs \u91cc\u662f\u54c8\u5e0c\u547d\u540d\u7684\u5206\u7247\u6587\u4ef6&#xff0c;\u6a21\u578b\u7684\u5b9e\u9645\u6570\u636e\u90fd\u5728\u8fd9\u91cc&#xff1b;manifests \u5b58\u7684\u662f\u7d22\u5f15\u4fe1\u606f&#xff0c;\u4f53\u79ef\u5f88\u5c0f\u3002\u6240\u4ee5\u5343\u4e07\u522b\u8dd1\u5230 blobs \u91cc\u6309\u6a21\u578b\u540d\u627e\u6587\u4ef6&#xff0c;\u78c1\u76d8\u4e0a\u6839\u672c\u770b\u4e0d\u51fa\u5bf9\u5e94\u5173\u7cfb&#xff0c;\u5f88\u5bb9\u6613\u8bef\u5220\u522b\u7684\u6a21\u578b\u3002<\/p>\n<p>\u5982\u679c\u4f60\u4e4b\u524d\u7528\u73af\u5883\u53d8\u91cf OLLAMA_MODELS \u628a\u6a21\u578b\u632a\u8fc7\u4f4d\u7f6e&#xff0c;\u90a3\u4e0a\u9762\u7684\u9ed8\u8ba4\u8def\u5f84\u5c31\u4e0d\u4f5c\u6570\u4e86&#xff0c;\u5f97\u6309\u4f60\u8bbe\u8fc7\u7684\u8def\u5f84\u6765\u3002\u987a\u624b\u770b\u4e00\u773c\u5f53\u524d\u5230\u5e95\u7528\u4e86\u54ea\u4e2a\u76ee\u5f55&#xff0c;\u4e0d\u4e8f\u3002<\/p>\n<h3>\u4e8c\u3001\u5404\u5e73\u53f0\u5f7b\u5e95\u5378\u8f7d<\/h3>\n<p>\u539f\u5219\u662f\u5148\u505c\u670d\u52a1\u3001\u518d\u5220\u6a21\u578b\u3001\u7136\u540e\u5378\u7a0b\u5e8f\u3001\u6700\u540e\u6e05\u6b8b\u7559&#xff0c;\u987a\u5e8f\u522b\u98a0\u5012\u3002<\/p>\n<h4>Windows<\/h4>\n<p>\u5148\u9000\u6389\u6258\u76d8\u91cc\u7684 Ollama&#xff0c;\u518d\u7528\u4efb\u52a1\u7ba1\u7406\u5668\u786e\u8ba4\u6ca1\u6709 ollama.exe \u6b8b\u7559\u8fdb\u7a0b\u3002\u5269\u4e0b\u7684\u6b65\u9aa4&#xff1a;<\/p>\n<li>\u5728&#034;\u8bbe\u7f6e \u2192 \u5e94\u7528 \u2192 \u5df2\u5b89\u88c5\u7684\u5e94\u7528&#034;\u91cc\u627e\u5230 Ollama&#xff0c;\u70b9\u5378\u8f7d&#xff1b;\u7528 winget \u88c5\u7684\u4e5f\u53ef\u4ee5\u76f4\u63a5 winget uninstall Ollama.Ollama\u3002<\/li>\n<li>\u5220\u6389\u6a21\u578b\u76ee\u5f55&#xff1a;C:\\\\Users\\\\&lt;\u4f60\u7684\u7528\u6237\u540d&gt;\\\\.ollama\u3002\u987a\u624b\u770b\u4e00\u773c %LOCALAPPDATA%\\\\Ollama&#xff0c;\u6709\u4e9b\u7248\u672c\u4f1a\u628a\u65e5\u5fd7\u548c\u8fd0\u884c\u65f6\u6587\u4ef6\u653e\u8fd9\u513f&#xff0c;\u7a0b\u5e8f\u672c\u4f53\u9ed8\u8ba4\u88c5\u5728 %LOCALAPPDATA%\\\\Programs\\\\Ollama&#xff0c;\u5378\u8f7d\u5668\u5931\u6548\u65f6\u5e94\u624b\u52a8\u68c0\u67e5&#xff0c;\u4e00\u5e76\u6e05\u6389\u3002<\/li>\n<li>\u6253\u5f00&#034;\u73af\u5883\u53d8\u91cf&#034;\u7a97\u53e3&#xff0c;\u68c0\u67e5\u6709\u6ca1\u6709 Ollama \u76f8\u5173\u7684\u6761\u76ee&#xff08;\u6bd4\u5982\u4f60\u4e4b\u524d\u52a0\u8fc7\u7684 OLLAMA_MODELS\u3001OLLAMA_HOST&#xff09;&#xff0c;\u4e0d\u9700\u8981\u5c31\u5220\u6389&#xff0c;\u514d\u5f97\u4e0b\u6b21\u91cd\u88c5\u8bfb\u5230\u65e7\u914d\u7f6e\u3002<\/li>\n<li>\u65b0\u5f00\u4e00\u4e2a\u7ec8\u7aef\u6572 ollama &#8211;version&#xff0c;\u63d0\u793a\u547d\u4ee4\u4e0d\u5b58\u5728&#xff0c;\u624d\u7b97\u6e05\u5e72\u51c0\u3002<\/li>\n<h4>Linux<\/h4>\n<p>\u7528\u5b98\u65b9\u811a\u672c\u5b89\u88c5\u7684\u60c5\u51b5&#xff0c;\u6309\u987a\u5e8f\u6267\u884c&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u505c\u670d\u52a1\u5e76\u53d6\u6d88\u5f00\u673a\u81ea\u542f<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl stop ollama<br \/>\n<span class=\"token function\">sudo<\/span> systemctl disable ollama<\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u670d\u52a1\u5b9a\u4e49\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">rm<\/span> \/etc\/systemd\/system\/ollama.service<br \/>\n<span class=\"token function\">sudo<\/span> systemctl daemon-reload<\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u4e8c\u8fdb\u5236\u6587\u4ef6&#xff08;\u4f4d\u7f6e\u53ef\u80fd\u662f \/usr\/local\/bin \u6216 \/usr\/bin&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">rm<\/span> <span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">which<\/span> ollama<span class=\"token variable\">)<\/span><\/span><\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u6a21\u578b\u548c Ollama \u4e13\u7528\u7528\u6237\u3001\u7528\u6237\u7ec4<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">rm<\/span> <span class=\"token parameter variable\">-r<\/span> \/usr\/share\/ollama<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">userdel<\/span> ollama<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">groupdel<\/span> ollama<\/p>\n<p><span class=\"token comment\"># \u5982\u679c\u4f60\u4e0d\u662f\u7528\u5b98\u65b9\u811a\u672c\u5b89\u88c5&#xff0c;\u800c\u662f\u4ee5\u666e\u901a\u7528\u6237\u8eab\u4efd\u76f4\u63a5\u8fd0\u884c Ollama&#xff0c;\u6a21\u578b\u53ef\u80fd\u5728 ~\/.ollama\/models<\/span><br \/>\n<span class=\"token function\">rm<\/span> <span class=\"token parameter variable\">-rf<\/span> ~\/.ollama<\/p>\n<h4>Docker<\/h4>\n<p>\u5982\u679c\u4f60\u662f\u901a\u8fc7\u5bb9\u5668\u8dd1\u7684&#xff0c;\u5c31\u7b80\u5355\u5f97\u591a&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> stop ollama<br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token function\">rm<\/span> ollama<br \/>\n<span class=\"token function\">docker<\/span> image <span class=\"token function\">rm<\/span> ollama\/ollama<br \/>\n<span class=\"token comment\"># \u5982\u679c\u5efa\u8fc7\u547d\u540d\u5377&#xff0c;\u4e00\u5e76\u5220\u6389<\/span><br \/>\n<span class=\"token function\">docker<\/span> volume <span class=\"token function\">rm<\/span> ollama<\/p>\n<h3>\u4e09\u3001\u91cd\u65b0\u90e8\u7f72<\/h3>\n<p>\u73af\u5883\u6e05\u5e72\u51c0\u4e86&#xff0c;\u63a5\u7740\u88c5\u3002\u88c5\u4e4b\u524d\u5148\u7b97\u4e00\u7b14\u786c\u4ef6\u7684\u8d26&#xff0c;\u514d\u5f97\u6a21\u578b\u4e00\u4e0b\u8f7d\u5c31\u5361\u5728&#034;\u80fd\u4e0d\u80fd\u8dd1\u5f97\u52a8&#034;\u4e0a\u3002<\/p>\n<h4>\u88c5\u4e4b\u524d\u5148\u770b\u6e05\u786c\u4ef6<\/h4>\n<p>\u6a21\u578b\u5927\u5c0f\u548c\u4f60\u7684\u5185\u5b58\u3001\u663e\u5b58\u76f4\u63a5\u6302\u94a9\u3002\u5f80\u5927\u4e86\u9009\u4e0d\u662f\u52c7\u6c14&#xff0c;\u662f\u6298\u78e8&#xff1a;<\/p>\n<table>\n<tr>\u6a21\u578b\u89c4\u6a21\u5927\u81f4\u6587\u4ef6\u5927\u5c0f\u5efa\u8bae\u914d\u7f6e\u9002\u5408\u7684\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>1B~2B<\/td>\n<td>1~2 GB<\/td>\n<td>8 GB \u5185\u5b58&#xff0c;\u65e0\u72ec\u663e\u4e5f\u80fd\u8dd1<\/td>\n<td>\u9a8c\u8bc1\u5b89\u88c5\u3001\u8f7b\u91cf\u95ee\u7b54<\/td>\n<\/tr>\n<tr>\n<td>7B~8B<\/td>\n<td>4~5 GB<\/td>\n<td>16 GB \u5185\u5b58&#xff0c;\u6709 8 GB \u663e\u5b58\u66f4\u987a<\/td>\n<td>\u65e5\u5e38\u95ee\u7b54\u3001\u6587\u6863\u5904\u7406\u3001\u5199\u4ee3\u7801<\/td>\n<\/tr>\n<tr>\n<td>13B~14B<\/td>\n<td>8~9 GB<\/td>\n<td>12~16 GB \u53ca\u4ee5\u4e0a\u663e\u5b58<\/td>\n<td>\u590d\u6742\u63a8\u7406\u3001\u957f\u6587\u672c\u751f\u6210<\/td>\n<\/tr>\n<tr>\n<td>30B~70B<\/td>\n<td>17~40 GB&#xff08;\u968f\u89c4\u6a21\u4e0e\u91cf\u5316\u7b49\u7ea7\u6d6e\u52a8&#xff09;<\/td>\n<td>\u4e13\u4e1a\u663e\u5361 &#043; 32 GB \u4ee5\u4e0a\u5185\u5b58<\/td>\n<td>\u5c11\u6570\u9ad8\u7cbe\u5ea6\u573a\u666f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u666e\u901a\u7b14\u8bb0\u672c\u4e0a\u5148\u62ff 7B \u7ea7\u522b\u7684\u4e2d\u6587\u6a21\u578b\u7ec3\u624b&#xff0c;\u8dd1\u987a\u4e86\u518d\u5f80\u4e0a\u52a0\u3002<\/p>\n<h4>\u5b89\u88c5&#xff08;Windows \/ Linux&#xff09;<\/h4>\n<ul>\n<li>Windows&#xff1a;\u5b98\u7f51\u4e0b OllamaSetup.exe&#xff0c;\u53cc\u51fb\u4e00\u8def Install&#xff0c;\u88c5\u5b8c\u6258\u76d8\u4f1a\u51fa\u73b0\u5c0f\u7f8a\u9a7c\u56fe\u6807\u3002\u4e5f\u53ef\u4ee5\u5728 PowerShell \u91cc\u8dd1 irm https:\/\/ollama.com\/install.ps1 | iex\u3002<\/li>\n<li>Linux&#xff1a;\u4e00\u884c\u811a\u672c\u641e\u5b9a&#xff0c;\u5b83\u4f1a\u81ea\u52a8\u6ce8\u518c systemd \u670d\u52a1&#xff1a;<\/li>\n<\/ul>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-fsSL<\/span> https:\/\/ollama.com\/install.sh <span class=\"token operator\">|<\/span> <span class=\"token function\">sh<\/span><\/p>\n<p>\u88c5\u5b8c\u5728\u7ec8\u7aef\u6267\u884c ollama &#8211;version&#xff0c;\u80fd\u6253\u5370\u51fa\u7248\u672c\u53f7\u5c31\u8bf4\u660e\u670d\u52a1\u5df2\u7ecf\u5c31\u4f4d\u3002<\/p>\n<p>ollama <span class=\"token parameter variable\">&#8211;version<\/span><br \/>\nollama version is <span class=\"token number\">0.5<\/span>.4<\/p>\n<p>systemctl status ollama<\/p>\n<p>\u25cf ollama.service &#8211; Ollama Service<br \/>\n   Loaded: loaded <span class=\"token punctuation\">(<\/span>\/etc\/systemd\/system\/ollama.service<span class=\"token punctuation\">;<\/span> enabled<span class=\"token punctuation\">;<\/span> vendor preset: disabled<span class=\"token punctuation\">)<\/span><br \/>\n   Active: active <span class=\"token punctuation\">(<\/span>running<span class=\"token punctuation\">)<\/span> since Sat <span class=\"token number\">2026<\/span>-10-31 <span class=\"token number\">14<\/span>:01:29 CST<span class=\"token punctuation\">;<\/span> 31min ago<br \/>\n Main PID: <span class=\"token number\">1551<\/span> <span class=\"token punctuation\">(<\/span>ollama<span class=\"token punctuation\">)<\/span><br \/>\n    Tasks: <span class=\"token number\">9<\/span><br \/>\n   Memory: <span class=\"token number\">4<\/span>.4G<br \/>\n   CGroup: \/system.slice\/ollama.service<br \/>\n           \u2514\u25001551 \/usr\/local\/bin\/ollama serve<\/p>\n<p>Oct <span class=\"token number\">31<\/span> <span class=\"token number\">14<\/span>:05:54 dockerRegistry ollama<span class=\"token punctuation\">[<\/span><span class=\"token number\">1551<\/span><span class=\"token punctuation\">]<\/span>: llm_load_print_meta: FIM REP token    <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">151663<\/span> <span class=\"token string\">&#039;&lt;|repo_name|&gt;&#039;<\/span><br \/>\nOct <span class=\"token number\">31<\/span> <span class=\"token number\">14<\/span>:05:54 dockerRegistry ollama<span class=\"token punctuation\">[<\/span><span class=\"token number\">1551<\/span><span class=\"token punctuation\">]<\/span>: llm_load_print_meta: FIM SEP token    <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">151664<\/span> <span class=\"token string\">&#039;&lt;|file_sep|&gt;&#039;<\/span><br \/>\n<span class=\"token punctuation\">..<\/span><span class=\"token punctuation\">..<\/span><span class=\"token punctuation\">..<\/span><span class=\"token punctuation\">..<\/span><\/p>\n<h4>\u91cd\u88c5\u540e\u7684\u7b2c\u4e00\u4ef6\u4e8b&#xff1a;\u5148\u628a\u6a21\u578b\u4f4d\u7f6e\u9489\u6b7b<\/h4>\n<p>\u8fd9\u4e00\u6b65\u5f88\u591a\u4eba\u8df3\u8fc7&#xff0c;\u7136\u540e\u8fc7\u4e24\u5468\u53c8\u88ab C \u76d8\u585e\u6ee1\u3002Ollama \u7684\u6a21\u578b\u8def\u5f84\u5b8c\u5168\u7531\u73af\u5883\u53d8\u91cf OLLAMA_MODELS \u51b3\u5b9a&#xff0c;\u670d\u52a1\u542f\u52a8\u90a3\u4e00\u523b\u8bfb\u4e00\u6b21\u3002\u6240\u4ee5\u522b\u518d\u7b49\u4e0b\u8f7d\u5b8c\u624d\u60f3\u7740\u8fc1\u79fb&#xff0c;\u88c5\u5b8c\u7acb\u523b\u8bbe\u3002<\/p>\n<p>\u5148\u5efa\u4e00\u4e2a\u4e0d\u542b\u4e2d\u6587\u548c\u7a7a\u683c\u7684\u76ee\u5f55&#xff0c;\u6bd4\u5982 D:\\\\ollama\\\\models&#xff0c;\u7136\u540e&#xff1a;<\/p>\n<ul>\n<li>Windows&#xff1a;\u5728&#034;\u73af\u5883\u53d8\u91cf&#034;\u91cc\u65b0\u5efa OLLAMA_MODELS&#xff0c;\u503c\u586b\u76ee\u6807\u76ee\u5f55&#xff1b;\u4e4b\u540e\u5f7b\u5e95\u9000\u51fa Ollama \u518d\u542f\u52a8&#xff0c;\u751a\u81f3\u6ce8\u9500\u91cd\u767b\u4e00\u6b21&#xff0c;\u786e\u4fdd\u540e\u53f0\u8fdb\u7a0b\u8bfb\u5230\u65b0\u503c\u3002<\/li>\n<li>Linux&#xff1a;\u5728 ~\/.zshrc \u6216 ~\/.bashrc \u91cc\u52a0 export OLLAMA_MODELS&#061;~\/ollama\/models\u3002\u5982\u679c\u4f60\u7528\u7684\u662f systemd \u670d\u52a1&#xff0c;\u5149\u5728 shell \u91cc export \u6ca1\u7528&#xff0c;\u5f97\u6539\u670d\u52a1\u914d\u7f6e\u91cc\u7684 Environment \u9879&#xff1a;<\/li>\n<\/ul>\n<p><span class=\"token function\">sudo<\/span> systemctl edit ollama.service<br \/>\n<span class=\"token comment\"># \u5728 [Service] \u6bb5\u843d\u4e0b\u52a0\u4e00\u884c&#xff1a;<\/span><br \/>\n<span class=\"token comment\"># Environment&#061;&#034;OLLAMA_MODELS&#061;\/mnt\/data\/ollama\/models&#034;<\/span><\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl daemon-reload<span class=\"token comment\"># \u975e\u5fc5\u9700<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl restart ollama<\/p>\n<p>\u60f3\u786e\u8ba4\u6539\u6210\u4e86\u6ca1&#xff0c;\u6572 ollama list \u770b\u6a21\u578b\u5217\u8868&#xff0c;\u8def\u5f84\u6539\u5bf9\u540e ollama list \u5e94\u8be5\u662f\u7a7a\u7684&#xff0c;\u8fd9\u662f\u6b63\u5e38\u7684&#xff0c;\u91cd\u65b0 pull \u5373\u53ef&#xff1b;\u82e5\u4ecd\u80fd\u770b\u5230\u65e7\u6a21\u578b&#xff0c;\u8bf4\u660e\u670d\u52a1\u8fd8\u5728\u7528\u65e7\u8def\u5f84\u3002\u6216\u8005\u76f4\u63a5\u53bb\u76ee\u6807\u76ee\u5f55\u770b\u6709\u6ca1\u6709\u751f\u6210 blobs\u3001manifests \u4e24\u5c42\u7ed3\u6784\u3002<\/p>\n<h4>\u62c9\u7b2c\u4e00\u4e2a\u6a21\u578b<\/h4>\n<p>\u9009\u4e2a\u8f7b\u5feb\u7684\u8d77\u6b65&#xff0c;\u6bd4\u5982&#xff1a;<\/p>\n<p>ollama run deepseek-r1:7b<\/p>\n<p><span class=\"token comment\"># \u8f7b\u91cf\u673a\u578b\u53ef\u6362 deepseek-r1:1.5b<\/span><\/p>\n<p>\u7b2c\u4e00\u6b21\u6267\u884c\u4f1a\u81ea\u52a8\u4e0b\u8f7d&#xff0c;\u4e0b\u5b8c\u76f4\u63a5\u8fdb\u5bf9\u8bdd\u754c\u9762\u3002\u53ea\u60f3\u4e0b\u8f7d\u4e0d\u60f3\u9a6c\u4e0a\u804a&#xff0c;\u7528 ollama pull deepseek-r1:7b\u3002\u60f3\u9000\u51fa\u5bf9\u8bdd&#xff0c;\u8f93\u5165 \/exit\u3002<\/p>\n<p>\u60f3\u9a8c\u8bc1\u63a5\u53e3\u901a\u4e0d\u901a&#xff0c;\u53ef\u4ee5\u7528\u4e00\u6761 curl&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> http:\/\/localhost:11434\/api\/generate <span class=\"token parameter variable\">-d<\/span> <span class=\"token string\">&#039;{<br \/>\n  &#034;model&#034;: &#034;deepseek-r1:7b&#034;,<br \/>\n  &#034;prompt&#034;: &#034;\u7528\u4e00\u53e5\u8bdd\u89e3\u91ca\u4ec0\u4e48\u662f\u9012\u5f52&#034;,<br \/>\n  &#034;stream&#034;: false<br \/>\n}&#039;<\/span><\/p>\n<p><span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;model&#034;<\/span><span class=\"token builtin class-name\">:<\/span><span class=\"token string\">&#034;deepseek-r1:7b&#034;<\/span>,<span class=\"token string\">&#034;created_at&#034;<\/span><span class=\"token builtin class-name\">:<\/span><span class=\"token string\">&#034;2026-10-31T07:32:42.178431852Z&#034;<\/span>,<span class=\"token string\">&#034;response&#034;<\/span><span class=\"token builtin class-name\">:<\/span><span class=\"token string\">&#034;&lt;think&gt;\u55ef&#xff0c;\u6211\u73b0\u5728\u8981\u7406\u89e3\u4e00\u4e0b\u4ec0\u4e48\u662f\u9012\u5f52\u3002\u9996\u5148&#xff0c;\u6211\u770b\u5230\u201c\u9012\u5f52\u201d\u8fd9\u4e2a\u8bcd\u7531\u201c\u9012\u201d\u548c\u201c\u5f52\u201d\u7ec4\u6210\u3002\u5b57\u9762\u610f\u601d\u53ef\u80fd\u662f\u6307\u9010\u6b65\u56de\u6765\u7684\u610f\u601d\u5427&#xff1f;\u90a3\u5728\u7f16\u7a0b\u91cc\u9762&#xff0c;\u9012\u5f52\u5e94\u8be5\u662f\u4ec0\u4e48\u6837\u7684\u5462&#xff1f;&#8230;&#8230;&lt;think&gt;<span class=\"token entity\" title=\"\\\\n\">\\\\n<\/span><span class=\"token entity\" title=\"\\\\n\">\\\\n<\/span>\u9012\u5f52\u662f\u7a0b\u5e8f\u4e2d\u4e00\u79cd\u51fd\u6570\u6216\u8fc7\u7a0b\u8c03\u7528\u81ea\u8eab\u7684\u65b9\u5f0f&#xff0c;\u7528\u4e8e\u89e3\u51b3\u53ef\u5206\u89e3\u4e3a\u76f8\u4f3c\u5b50\u95ee\u9898\u7684\u95ee\u9898\u3002\u5b83\u901a\u8fc7\u5c06\u95ee\u9898\u9010\u6b65\u7f29\u5c0f\u89c4\u6a21&#xff0c;\u76f4\u5230\u8fbe\u5230\u57fa\u672c\u60c5\u51b5&#xff08;\u7ec8\u6b62\u6761\u4ef6&#xff09;&#xff0c;\u518d\u9010\u6b65\u8fd4\u56de\u7ed3\u679c&#xff0c;\u4ece\u800c\u907f\u514d\u91cd\u590d\u8ba1\u7b97\u5e76\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002&#034;<\/span>,<span class=\"token string\">&#034;done&#034;<\/span>:true,<span class=\"token string\">&#034;done_reason&#034;<\/span><span class=\"token builtin class-name\">:<\/span><span class=\"token string\">&#034;stop&#034;<\/span>,<span class=\"token string\">&#034;context&#034;<\/span>:<span class=\"token punctuation\">[<\/span><span class=\"token number\">151644<\/span>,<span class=\"token punctuation\">..<\/span><span class=\"token punctuation\">..<\/span>,1773<span class=\"token punctuation\">]<\/span>,<span class=\"token string\">&#034;total_duration&#034;<\/span>:157202417280,<span class=\"token string\">&#034;load_duration&#034;<\/span>:3168462007,<span class=\"token string\">&#034;prompt_eval_count&#034;<\/span>:9,<span class=\"token string\">&#034;prompt_eval_duration&#034;<\/span>:1761000000,<span class=\"token string\">&#034;eval_count&#034;<\/span>:586,<span class=\"token string\">&#034;eval_duration&#034;<\/span>:152237000000<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token comment\"># \u6ce8\u610f response \u91cc &lt;think&gt; \u6bb5\u662f R1 \u8fd9\u7c7b\u63a8\u7406\u6a21\u578b\u7684\u601d\u8003\u8fc7\u7a0b&#xff0c;\u5c5e\u4e8e\u6b63\u5e38\u8f93\u51fa&#xff0c;\u6700\u7ec8\u7b54\u6848\u5728\u5b83\u4e4b\u540e\u3002<\/span><\/p>\n<p>\u80fd\u6b63\u5e38\u8fd4\u56de JSON&#xff0c;\u5c31\u8bf4\u660e\u672c\u5730\u670d\u52a1\u5b8c\u5168\u53ef\u7528&#xff0c;\u63a5\u4e0b\u6765\u5404\u7c7b\u652f\u6301 OpenAI \u517c\u5bb9\u63a5\u53e3\u7684\u5ba2\u6237\u7aef\u3001\u7f16\u8f91\u5668\u63d2\u4ef6\u90fd\u80fd\u63a5\u4e0a\u6765\u4e86\u3002<\/p>\n<h3>\u56db\u3001\u51e0\u4e2a\u503c\u5f97\u63d0\u524d\u77e5\u9053\u7684\u73af\u5883\u53d8\u91cf<\/h3>\n<p>Ollama \u6ca1\u6709\u72ec\u7acb\u7684\u914d\u7f6e\u6587\u4ef6&#xff0c;\u6240\u6709\u5173\u952e\u8bbe\u7f6e\u90fd\u8d70\u73af\u5883\u53d8\u91cf&#xff0c;\u6539\u5b8c\u91cd\u542f\u670d\u52a1\u624d\u751f\u6548\u3002\u9664\u4e86 OLLAMA_MODELS&#xff0c;\u8fd8\u6709\u51e0\u4e2a\u4f1a\u7ecf\u5e38\u7528\u5230&#xff1a;<\/p>\n<ul>\n<li>OLLAMA_HOST&#xff1a;\u76d1\u542c\u5730\u5740&#xff0c;\u9ed8\u8ba4\u53ea\u5bf9\u672c\u673a\u5f00\u653e\u3002\u60f3\u8ba9\u5c40\u57df\u7f51\u5176\u4ed6\u8bbe\u5907\u8c03\u7528&#xff0c;\u8bbe\u6210 0.0.0.0:11434&#xff1b;\u60f3\u6362\u7aef\u53e3&#xff0c;\u4e5f\u5728\u8fd9\u91cc\u5e26\u4e0a&#xff0c;\u6bd4\u5982 0.0.0.0:8080\u3002<\/li>\n<li>OLLAMA_ORIGINS&#xff1a;\u6d4f\u89c8\u5668\u7aef\u8de8\u57df\u8c03\u7528\u65f6\u7528\u6765\u653e\u5f00\u6765\u6e90&#xff0c;\u6d4b\u8bd5\u9636\u6bb5\u53ef\u4ee5\u8bbe\u6210 *\u3002<\/li>\n<li>OLLAMA_KEEP_ALIVE&#xff1a;\u6a21\u578b\u52a0\u8f7d\u540e\u9a7b\u7559\u5185\u5b58\u7684\u65f6\u95f4&#xff0c;\u9ed8\u8ba4 5 \u5206\u949f\u3002\u9891\u7e41\u7528\u7684\u8bdd\u8c03\u5927\u4e9b&#xff0c;\u6bd4\u5982 24h&#xff0c;\u80fd\u7701\u6389\u53cd\u590d\u52a0\u8f7d\u7684\u7b49\u5f85\u3002<\/li>\n<li>OLLAMA_MAX_LOADED_MODELS \u548c OLLAMA_NUM_PARALLEL&#xff1a;\u540c\u65f6\u52a0\u8f7d\u7684\u6a21\u578b\u6570\u3001\u5e76\u53d1\u8bf7\u6c42\u6570&#xff0c;\u673a\u5668\u5185\u5b58\u5145\u8db3\u65f6\u53ef\u4ee5\u9002\u5f53\u653e\u5f00\u3002<\/li>\n<\/ul>\n<h3>\u4e94\u3001\u51e0\u4e2a\u5e38\u89c1\u7684\u5751<\/h3>\n<ul>\n<li>\u6539\u5b8c\u53d8\u91cf\u6ca1\u751f\u6548\u3002\u57fa\u672c\u90fd\u662f\u5fd8\u4e86\u91cd\u542f\u670d\u52a1\u3002\u73af\u5883\u53d8\u91cf\u5728\u8fdb\u7a0b\u542f\u52a8\u65f6\u8bfb\u4e00\u6b21&#xff0c;\u4e4b\u540e\u6539\u7cfb\u7edf\u53d8\u91cf\u4e0d\u5f71\u54cd\u5df2\u7ecf\u8dd1\u7740\u7684\u8fdb\u7a0b\u3002<\/li>\n<li>\u4e0b\u8f7d\u6a21\u578b\u5361\u4f4f\u6216\u8005\u8d85\u65f6\u3002\u5148\u786e\u8ba4\u670d\u52a1\u5728\u8fd0\u884c\u3001\u7f51\u7edc\u901a&#xff1b;\u5b9e\u5728\u6162\u7684\u8bdd&#xff0c;\u6362\u4e2a\u65f6\u95f4\u6bb5&#xff0c;\u6216\u901a\u8fc7 HTTPS_PROXY \u8d70\u4ee3\u7406\u52a0\u901f&#xff08;\u6ce8\u610f\u4e0d\u8981\u8bbe HTTP_PROXY&#xff0c;\u5b98\u65b9 FAQ \u660e\u786e\u63d0\u793a\u5b83\u53ef\u80fd\u4e2d\u65ad\u5ba2\u6237\u7aef\u8fde\u63a5&#xff09;\u3002Ollama \u6ca1\u6709&#034;\u955c\u50cf\u52a0\u901f\u53d8\u91cf&#034;\u8fd9\u7c7b\u4e1c\u897f&#xff0c;\u522b\u53bb\u627e\u4e0d\u5b58\u5728\u7684\u5f00\u5173\u3002<\/li>\n<li>Linux \u4e0a export \u4e86\u53d8\u91cf\u4f46\u670d\u52a1\u8fd8\u662f\u7528\u65e7\u8def\u5f84\u3002\u56e0\u4e3a\u670d\u52a1\u4e0d\u662f\u4ece\u4f60\u7684 shell \u542f\u52a8\u7684&#xff0c;\u5fc5\u987b\u5728 systemd \u7684 Environment \u91cc\u6539\u3002<\/li>\n<li>\u5220\u4e86\u6a21\u578b\u7a7a\u95f4\u6ca1\u56de\u6765\u3002\u68c0\u67e5\u662f\u4e0d\u662f\u6709\u4e24\u4efd\u6a21\u578b\u76ee\u5f55\u2014\u2014\u65e7\u8def\u5f84\u548c\u65b0\u8def\u5f84\u5404\u5b58\u4e86\u4e00\u4efd&#xff0c;\u8fc1\u79fb\u65f6\u590d\u5236\u5b8c\u5fd8\u4e86\u5220\u65e7\u7684\u3002<\/li>\n<\/ul>\n<hr \/>\n<p>\u6574\u4e2a\u6d41\u7a0b\u8d70\u4e0b\u6765&#xff0c;\u5176\u5b9e\u5c31\u4e24\u4ef6\u4e8b&#xff1a;\u5378\u8f7d\u65f6\u8bb0\u4f4f Ollama \u6709\u56db\u5c42\u6b8b\u7559&#xff0c;\u522b\u53ea\u5220\u7a0b\u5e8f&#xff1b;\u91cd\u88c5\u65f6\u5148\u628a\u6a21\u578b\u4f4d\u7f6e\u5b9a\u597d&#xff0c;\u522b\u7b49 C \u76d8\u62a5\u8b66\u624d\u60f3\u8d77\u8fc1\u79fb\u3002\u73af\u5883\u5e72\u51c0\u4e86&#xff0c;\u540e\u9762\u4e0d\u7ba1\u662f\u63a5\u672c\u5730\u77e5\u8bc6\u5e93\u3001\u5199 Agent&#xff0c;\u8fd8\u662f\u7eaf\u79bb\u7ebf\u804a\u5929&#xff0c;\u90fd\u4f1a\u7701\u5fc3\u5f88\u591a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5199\u8fd9\u7bc7\u7b14\u8bb0\u7684\u8d77\u56e0\u5f88\u6734\u7d20&#xff1a;C \u76d8\u88ab\u6a21\u578b\u6587\u4ef6\u5403\u6389\u5feb 60G&#xff0c;\u60f3\u6e05\u7406\u7684\u65f6\u5019\u624d\u53d1\u73b0&#xff0c;\\&#8221;\u5378\u8f7d Ollama\\&#8221;\u8fd9\u4ef6\u4e8b\u538b\u6839\u6ca1\u6709\u60f3\u8c61\u4e2d\u90a3\u4e48\u7b80\u5355\u3002<br \/>\n\u5728\u8bbe\u7f6e\u91cc\u70b9\u4e86\u5378\u8f7d&#xff0c;\u56de\u5934\u6572\u4e00\u53e5 ollama list&#xff0c;\u6a21\u578b\u8fd8\u5728\u3002\u624b\u52a8\u5220\u4e86\u6a21\u578b\u76ee\u5f55&#xff0c;\u624b\u4e00\u6296\u53c8\u6267\u884c\u4e86 ollama serve&#xff0c;\u670d\u52a1\u5c45\u7136\u8fd8\u80fd\u8d77\u6765\u3002\u6298\u817e\u534a\u5929\u624d\u60f3\u660e\u767d&#xff0c;Ollama \u4e0d\u662f\u90a3\u79cd\\&#8221;\u88c5\u5728\u4e00\u4e2a\u6587\u4ef6\u5939\u91cc\u3001\u5220\u4e86\u5c31\u6ca1\\&#8221;\u7684\u8f6f\u4ef6&#xff0c;\u5b83<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[59,58,149,50,227],"topic":[],"class_list":["post-121690","post","type-post","status-publish","format-standard","hentry","category-server","tag-centos","tag-linux","tag-windows","tag-50","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ollama\u5378\u8f7d\u4e0e\u91cd\u65b0\u90e8\u7f72\u5b9e\u64cd\uff08\u9002\u5408Windows\u548cLinux\u7cfb\u7edf\uff09 - \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\/121690.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ollama\u5378\u8f7d\u4e0e\u91cd\u65b0\u90e8\u7f72\u5b9e\u64cd\uff08\u9002\u5408Windows\u548cLinux\u7cfb\u7edf\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6211\u5199\u8fd9\u7bc7\u7b14\u8bb0\u7684\u8d77\u56e0\u5f88\u6734\u7d20&#xff1a;C \u76d8\u88ab\u6a21\u578b\u6587\u4ef6\u5403\u6389\u5feb 60G&#xff0c;\u60f3\u6e05\u7406\u7684\u65f6\u5019\u624d\u53d1\u73b0&#xff0c;&quot;\u5378\u8f7d Ollama&quot;\u8fd9\u4ef6\u4e8b\u538b\u6839\u6ca1\u6709\u60f3\u8c61\u4e2d\u90a3\u4e48\u7b80\u5355\u3002 \u5728\u8bbe\u7f6e\u91cc\u70b9\u4e86\u5378\u8f7d&#xff0c;\u56de\u5934\u6572\u4e00\u53e5 ollama list&#xff0c;\u6a21\u578b\u8fd8\u5728\u3002\u624b\u52a8\u5220\u4e86\u6a21\u578b\u76ee\u5f55&#xff0c;\u624b\u4e00\u6296\u53c8\u6267\u884c\u4e86 ollama serve&#xff0c;\u670d\u52a1\u5c45\u7136\u8fd8\u80fd\u8d77\u6765\u3002\u6298\u817e\u534a\u5929\u624d\u60f3\u660e\u767d&#xff0c;Ollama \u4e0d\u662f\u90a3\u79cd&quot;\u88c5\u5728\u4e00\u4e2a\u6587\u4ef6\u5939\u91cc\u3001\u5220\u4e86\u5c31\u6ca1&quot;\u7684\u8f6f\u4ef6&#xff0c;\u5b83\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/121690.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-03T03:16:47+00:00\" \/>\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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/121690.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/121690.html\",\"name\":\"Ollama\u5378\u8f7d\u4e0e\u91cd\u65b0\u90e8\u7f72\u5b9e\u64cd\uff08\u9002\u5408Windows\u548cLinux\u7cfb\u7edf\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-03T03:16:47+00:00\",\"dateModified\":\"2026-11-03T03:16:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/121690.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/121690.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/121690.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ollama\u5378\u8f7d\u4e0e\u91cd\u65b0\u90e8\u7f72\u5b9e\u64cd\uff08\u9002\u5408Windows\u548cLinux\u7cfb\u7edf\uff09\"}]},{\"@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":"Ollama\u5378\u8f7d\u4e0e\u91cd\u65b0\u90e8\u7f72\u5b9e\u64cd\uff08\u9002\u5408Windows\u548cLinux\u7cfb\u7edf\uff09 - \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\/121690.html","og_locale":"zh_CN","og_type":"article","og_title":"Ollama\u5378\u8f7d\u4e0e\u91cd\u65b0\u90e8\u7f72\u5b9e\u64cd\uff08\u9002\u5408Windows\u548cLinux\u7cfb\u7edf\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6211\u5199\u8fd9\u7bc7\u7b14\u8bb0\u7684\u8d77\u56e0\u5f88\u6734\u7d20&#xff1a;C \u76d8\u88ab\u6a21\u578b\u6587\u4ef6\u5403\u6389\u5feb 60G&#xff0c;\u60f3\u6e05\u7406\u7684\u65f6\u5019\u624d\u53d1\u73b0&#xff0c;\"\u5378\u8f7d Ollama\"\u8fd9\u4ef6\u4e8b\u538b\u6839\u6ca1\u6709\u60f3\u8c61\u4e2d\u90a3\u4e48\u7b80\u5355\u3002 \u5728\u8bbe\u7f6e\u91cc\u70b9\u4e86\u5378\u8f7d&#xff0c;\u56de\u5934\u6572\u4e00\u53e5 ollama list&#xff0c;\u6a21\u578b\u8fd8\u5728\u3002\u624b\u52a8\u5220\u4e86\u6a21\u578b\u76ee\u5f55&#xff0c;\u624b\u4e00\u6296\u53c8\u6267\u884c\u4e86 ollama serve&#xff0c;\u670d\u52a1\u5c45\u7136\u8fd8\u80fd\u8d77\u6765\u3002\u6298\u817e\u534a\u5929\u624d\u60f3\u660e\u767d&#xff0c;Ollama \u4e0d\u662f\u90a3\u79cd\"\u88c5\u5728\u4e00\u4e2a\u6587\u4ef6\u5939\u91cc\u3001\u5220\u4e86\u5c31\u6ca1\"\u7684\u8f6f\u4ef6&#xff0c;\u5b83","og_url":"https:\/\/www.wsisp.com\/helps\/121690.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-03T03:16:47+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/121690.html","url":"https:\/\/www.wsisp.com\/helps\/121690.html","name":"Ollama\u5378\u8f7d\u4e0e\u91cd\u65b0\u90e8\u7f72\u5b9e\u64cd\uff08\u9002\u5408Windows\u548cLinux\u7cfb\u7edf\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-03T03:16:47+00:00","dateModified":"2026-11-03T03:16:47+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/121690.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/121690.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/121690.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Ollama\u5378\u8f7d\u4e0e\u91cd\u65b0\u90e8\u7f72\u5b9e\u64cd\uff08\u9002\u5408Windows\u548cLinux\u7cfb\u7edf\uff09"}]},{"@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\/121690","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=121690"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/121690\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=121690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=121690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=121690"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=121690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}