{"id":10967,"date":"2025-04-18T18:22:55","date_gmt":"2025-04-18T10:22:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/10967.html"},"modified":"2025-04-18T18:22:55","modified_gmt":"2025-04-18T10:22:55","slug":"%e6%89%8b%e6%8a%8a%e6%89%8b%e6%95%99%e4%bd%a0%e5%a6%82%e4%bd%95%e5%9c%a8%e4%b8%80%e5%8f%b02%e6%a0%b82gecs%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%b7%91deepseek-r1%e6%a8%a1%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/10967.html","title":{"rendered":"\u624b\u628a\u624b\u6559\u4f60\u5982\u4f55\u5728\u4e00\u53f02\u68382gECS\u670d\u52a1\u5668\u8dd1Deepseek R1\u6a21\u578b"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>\u5199\u5728\u524d\u9762&#xff1a;Deepseek\u7b80\u4ecb&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<li>\u51c6\u5907\u5de5\u4f5c&#xff1a;\u4e3a\u4ec0\u4e48\u9009\u62e92\u68382G ECS\u670d\u52a1\u5668&#xff1f;<\/li>\n<li>\u73af\u5883\u51c6\u5907<\/li>\n<li>\n<ul>\n<li>\n<ul>\n<li>\u5b98\u65b9\u63a8\u8350\u914d\u7f6e<\/li>\n<li>\u5c0f\u843d\u914d\u7f6e<\/li>\n<li>\u5176\u4ed6\u73af\u5883\u51c6\u5907&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>DeepSeek R1 \u6a21\u578b\u7684\u83b7\u53d6\u4e0e\u90e8\u7f72<\/li>\n<li>\n<ul>\n<li>\n<ul>\n<li>\u7b2c 1 \u6b65&#xff1a;\u5b89\u88c5 Ollama<\/li>\n<li>\u7b2c 2 \u6b65&#xff1a;\u4e0b\u8f7d\u5e76\u8fd0\u884c DeepSeek-R1 \u6a21\u578b<\/li>\n<li>\u865a\u62df\u5185\u5b58<\/li>\n<\/ul>\n<\/li>\n<li>**\u6b65\u9aa4 1&#xff1a;\u521b\u5efa\u65b0\u7684 Swap \u6587\u4ef6**<\/li>\n<li>**\u6b65\u9aa4 2&#xff1a;\u9a8c\u8bc1 Swap \u662f\u5426\u589e\u52a0**<\/li>\n<li>**\u6b65\u9aa4 3&#xff1a;\u786e\u4fdd Swap \u6587\u4ef6\u5728\u7cfb\u7edf\u91cd\u542f\u540e\u4ecd\u7136\u542f\u7528**<\/li>\n<\/ul>\n<\/li>\n<li>Deepseek Web UI \u90e8\u7f72<\/li>\n<li>**&#x1f7e2; 1. \u5b89\u88c5 Docker**<\/li>\n<li>**&#x1f7e2; 2. \u90e8\u7f72 Open WebUI**<\/li>\n<li>\n<ul>\n<li>**1\ufe0f\u20e3 \u62c9\u53d6 WebUI \u955c\u50cf**<\/li>\n<li>**2\ufe0f\u20e3 \u8fd0\u884c WebUI**<\/li>\n<\/ul>\n<\/li>\n<li>**&#x1f7e2; 3. \u786e\u4fdd WebUI \u7aef\u53e3\u53ef\u8bbf\u95ee**<\/li>\n<li>\n<ul>\n<li>**1\ufe0f\u20e3 \u68c0\u67e5 WebUI \u662f\u5426\u76d1\u542c 8080 \u7aef\u53e3**<\/li>\n<li>**2\ufe0f\u20e3 \u786e\u4fdd\u9632\u706b\u5899\u5f00\u653e 8080 \u7aef\u53e3**<\/li>\n<li>**3\ufe0f\u20e3 \u786e\u4fdd\u4e91\u670d\u52a1\u5668\u5b89\u5168\u7ec4\u5f00\u653e 8080 \u7aef\u53e3**<\/li>\n<\/ul>\n<\/li>\n<li>**&#x1f7e2; 4. \u8bbf\u95ee WebUI**<\/li>\n<li>**&#x1f534; \u5982\u679c\u4ecd\u7136\u65e0\u6cd5\u8bbf\u95ee**<\/li>\n<li>\n<ul>\n<li>**1\ufe0f\u20e3 \u6d4b\u8bd5\u670d\u52a1\u5668\u672c\u5730\u8bbf\u95ee**<\/li>\n<li>**2\ufe0f\u20e3 \u68c0\u67e5 WebUI \u65e5\u5fd7**<\/li>\n<li>**3\ufe0f\u20e3 \u786e\u4fdd WebUI \u8fde\u63a5\u5230 Ollama**<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u5199\u5728\u524d\u9762&#xff1a;Deepseek\u7b80\u4ecb&#xff1a;<\/h4>\n<p>DeepSeek\u662f\u4e00\u6b3e\u7531\u56fd\u5185\u4eba\u5de5\u667a\u80fd\u516c\u53f8\u7814\u53d1\u7684\u5927\u578b\u8bed\u8a00\u6a21\u578b&#xff0c;\u62e5\u6709\u5f3a\u5927\u7684\u81ea\u7136\u8bed\u8a00\u5904\u7406\u80fd\u529b&#xff0c;\u80fd\u591f\u7406\u89e3\u5e76\u56de\u7b54\u95ee\u9898&#xff0c;\u8fd8\u80fd\u8f85\u52a9\u5199\u4ee3\u7801\u3001\u6574\u7406\u8d44\u6599\u548c\u89e3\u51b3\u590d\u6742\u7684\u6570\u5b66\u95ee\u9898\u3002\u4e00\u7ecf\u53d1\u5e03&#xff0c;DeepSeek\u5f00\u53d1\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u8d85\u8d8aOpenAI\u7684ChatGPT&#xff0c;\u767b\u9876\u82f9\u679c\u624b\u673a\u5e94\u7528\u5546\u5e97\u7f8e\u56fd\u533a\u3001\u4e2d\u56fd\u533a\u514d\u8d39\u5e94\u7528\u699c\u5355\u3002<\/p>\n<p>\u4e0eOpenAI\u5f00\u53d1\u7684ChatGPT\u76f8\u6bd4&#xff0c;DeepSeek\u4e0d\u4ec5\u7387\u5148\u5b9e\u73b0\u4e86\u5ab2\u7f8eOpenAI-o1\u6a21\u578b\u7684\u6548\u679c&#xff0c;\u8fd8\u5927\u5e45\u964d\u4f4e\u4e86\u63a8\u7406\u6a21\u578b\u7684\u6210\u672c\u3002\u5176\u65b0\u6a21\u578bDeepSeek-R1\u4ee5\u5341\u5206\u4e4b\u4e00\u7684\u6210\u672c\u8fbe\u5230\u4e86GPT-o1\u7ea7\u522b\u7684\u8868\u73b0&#xff0c;\u5f15\u53d1\u6d77\u5916AI\u5708\u7684\u5e7f\u6cdb\u8ba8\u8bba\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102251-680227fb84e4c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u90a3\u4e48&#xff0c;DeepSeek\u5230\u5e95\u662f\u4ec0\u4e48&#xff1f;\u4e3a\u4ec0\u4e48\u80fd\u201c\u5f15\u7206\u201d\u7f8e\u56fd\u79d1\u6280\u5708&#xff1f;\u5927\u5bb6\u5173\u6ce8\u8fd1\u51e0\u5929\u7684\u65b0\u95fb\u5c31\u53ef\u4e00\u63a2\u7a76\u7adf&#xff0c;\u672c\u671f\u4e3b\u8981\u5e26\u7740\u5927\u5bb6\u4e00\u952e\u90e8\u7f72\u81ea\u5df1\u7684DeepSeek\u670d\u52a1&#xff0c;\u4e00\u8d77\u6765\u770b\u770b\u5427&#xff01;<\/p>\n<p>\u5b98\u7f51&#xff1a;https:\/\/www.deepseek.com GitHub&#xff1a;https:\/\/github.com\/deepseek-ai<\/p>\n<h3>\u51c6\u5907\u5de5\u4f5c&#xff1a;\u4e3a\u4ec0\u4e48\u9009\u62e92\u68382G ECS\u670d\u52a1\u5668&#xff1f;<\/h3>\n<p>\u56e0\u4e3a\u6211\u8bb0\u5f97\u6211\u597d\u50cf\u6709\u53f0\u56db\u6838\u516bG\u7684\u670d\u52a1\u5668\u4e00\u76f4\u6ca1\u7528\u8fc7&#xff0c;\u8fd9\u4e24\u5929\u5237\u6296\u97f3\u901bb\u7ad9\u90fd\u662f\u5404\u79cd\u535a\u4e3b\u672c\u5730\u90e8\u7f72Deepseek R1\u6a21\u578b&#xff0c;\u6211\u8f6c\u5934\u60f3\u60f3\u6211\u7684\u201c\u7834\u7535\u8111\u201d\u8fd8\u80fd\u9020\u5417&#xff1f;&#xff1f;&#xff1f;<\/p>\n<p>\u90a3\u6211\u5c31\u60f3\u7740\u5728\u670d\u52a1\u5668\u90e8\u7f72\u5427&#xff0c;\u4f46\u662f\u670d\u52a1\u5668\u54ea\u6765\u7684GPU&#xff0c;\u90a3\u4e0d\u5f97\u5427CPU\u5e72\u5192\u70df&#xff0c;\u90a3\u6211\u5c31\u60f3\u90a3\u5c31\u8bd5\u8bd5\u6700\u5c0f\u76841.5b\u53c2\u6570\u7684\u6a21\u578b\u5427&#xff0c;\u521a\u5f00\u59cb\u5c31\u53ea\u5f53\u5934\u4e00\u68d2&#xff0c;\u5367\u69fd&#xff0c;\u8bb0\u9519\u5566&#xff0c;\u670d\u52a1\u5668\u600e\u4e48\u6210\u4e862\u68382g&#xff1f;&#xff1f;&#xff1f;\u8fd9\u8fd8\u641e\u4e2a\u5934\u5462&#xff1f;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102251-680227fbe1350.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4f46\u662f\u5f00\u5f13\u54ea\u6709\u56de\u5934\u7bad&#xff0c;\u786c\u7740\u5934\u76ae\u5e72\u5c31\u5b8c\u4e8b\u5566&#xff01;<\/p>\n<h3>\u73af\u5883\u51c6\u5907<\/h3>\n<h5>\u5b98\u65b9\u63a8\u8350\u914d\u7f6e<\/h5>\n<p>DeepSeek R1 \u6a21\u578b\u53c2\u6570\u548c\u663e\u5b58\u9700\u6c42&#xff1a;<\/p>\n<table>\n<tr>\u6a21\u578b\u540d\u79f0\u53c2\u6570\u91cf\u663e\u5b58\u9700\u6c42\u63a8\u8350\u663e\u5361\u578b\u53f7&#xff08;\u6700\u4f4e&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>DeepSeek-R1-Distill-Qwen-1.5B<\/td>\n<td>1.5B<\/td>\n<td>4-6 GB<\/td>\n<td>GTX 1660 Ti\u3001RTX 2060<\/td>\n<\/tr>\n<tr>\n<td>DeepSeek-R1-Distill-Qwen-7B<\/td>\n<td>7B<\/td>\n<td>12-16 GB<\/td>\n<td>RTX 3060\u3001RTX 3080<\/td>\n<\/tr>\n<tr>\n<td>DeepSeek-R1-Distill-Llama-8B<\/td>\n<td>8B<\/td>\n<td>16-20 GB<\/td>\n<td>RTX 3080 Ti\u3001RTX 3090<\/td>\n<\/tr>\n<tr>\n<td>DeepSeek-R1-Distill-Qwen-14B<\/td>\n<td>14B<\/td>\n<td>24-32 GB<\/td>\n<td>RTX 3090\u3001RTX 4090<\/td>\n<\/tr>\n<tr>\n<td>DeepSeek-R1-Distill-Qwen-32B<\/td>\n<td>32B<\/td>\n<td>48-64 GB<\/td>\n<td>A100\u3001H100<\/td>\n<\/tr>\n<tr>\n<td>DeepSeek-R1-Distill-Llama-70B<\/td>\n<td>70B<\/td>\n<td>80-128 GB<\/td>\n<td>A100\u3001H100\u3001MI250X<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>\u5c0f\u843d\u914d\u7f6e<\/h5>\n<p>\u4e00\u53f02\u68382g ECS\u4e91\u670d\u52a1\u5668&#xff0c;\u6ca1\u5566&#xff01;<\/p>\n<h5>\u5176\u4ed6\u73af\u5883\u51c6\u5907&#xff1a;<\/h5>\n<p>\u64cd\u4f5c\u7cfb\u7edf&#xff1a;Ubuntu 22.04 \u6216\u7c7b\u4f3c\u7684 Linux \u53d1\u884c\u7248\u3002 \u8f6f\u4ef6&#xff1a;Python 3.8 \u6216\u66f4\u9ad8\u7248\u672c&#xff0c;\u5e76\u4e14\u60a8\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5\u4e86 Git\u3002 \u53ef\u7528\u78c1\u76d8\u7a7a\u95f4&#xff1a; \u5bf9\u4e8e\u8f83\u5c0f\u7684\u6a21\u578b&#xff0c;\u81f3\u5c11 10 GB;<\/p>\n<p>\u8bdd\u8bf4CPU\u3001\u5185\u5b58\u5c31\u6ca1\u8981\u6c42\u5417&#xff0c;\u5f53\u7136\u6709&#xff0c;\u4f46\u6211\u4eec\u8fd9\u5c31\u914d\u7f6e\u8fd8\u600e\u4e48\u8981\u6c42&#xff0c;\u5c31\u7528\u70b9\u9b54\u6cd5\u5566&#xff01;<\/p>\n<h3>DeepSeek R1 \u6a21\u578b\u7684\u83b7\u53d6\u4e0e\u90e8\u7f72<\/h3>\n<p>\u8981\u6210\u529f\u8fd0\u884c DeepSeek R1 \u6a21\u578b&#xff0c;\u9996\u5148\u9700\u8981\u5b89\u88c5\u5e76\u914d\u7f6e\u597d\u4e00\u4e9b\u57fa\u7840\u5de5\u5177\u3002\u8fd9\u91cc\u6211\u4eec\u5c06\u901a\u8fc7 Ollama \u5de5\u5177\u6765\u4e0b\u8f7d\u548c\u8fd0\u884c DeepSeek \u6a21\u578b\u3002Ollama \u662f\u4e00\u6b3e\u4e13\u4e3a\u5728\u672c\u5730\u8fd0\u884c AI \u6a21\u578b\u800c\u8bbe\u8ba1\u7684\u5de5\u5177&#xff0c;\u5b83\u80fd\u591f\u5e2e\u52a9\u4f60\u5feb\u901f\u90e8\u7f72\u548c\u7ba1\u7406\u6a21\u578b&#xff0c;\u786e\u4fdd\u987a\u5229\u5b8c\u6210 AI \u670d\u52a1\u7684\u642d\u5efa\u3002<\/p>\n<h5>\u7b2c 1 \u6b65&#xff1a;\u5b89\u88c5 Ollama<\/h5>\n<p>Ollama \u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u5b89\u88c5\u811a\u672c&#xff0c;\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5728\u7ec8\u7aef\u4e2d\u76f4\u63a5\u5b89\u88c5&#xff1a;<\/p>\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><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102252-680227fc78515.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u6b64\u547d\u4ee4\u5c06\u81ea\u52a8\u4e0b\u8f7d\u5e76\u6267\u884c Ollama \u5b89\u88c5\u811a\u672c&#xff0c;\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d&#xff0c;Ollama \u4f1a\u81ea\u52a8\u914d\u7f6e\u6240\u9700\u7684\u670d\u52a1\u5e76\u5b8c\u6210\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5 Ollama \u662f\u5426\u5df2\u6210\u529f\u5b89\u88c5&#xff1a;<\/p>\n<p>ollama <span class=\"token parameter variable\">&#8211;version<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102252-680227fc887f4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5982\u679c\u5b89\u88c5\u6210\u529f&#xff0c;\u7cfb\u7edf\u5c06\u8f93\u51fa\u7248\u672c\u4fe1\u606f\u3002\u63a5\u4e0b\u6765&#xff0c;\u6211\u4eec\u9700\u8981\u786e\u8ba4 Ollama \u670d\u52a1\u662f\u5426\u6b63\u5728\u8fd0\u884c&#xff1a;<\/p>\n<p>systemctl is-active ollama.service<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102252-680227fc93749.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5982\u679c\u8f93\u51fa\u4e3a active&#xff0c;\u8bf4\u660e Ollama \u670d\u52a1\u6b63\u5728\u8fd0\u884c&#xff0c;\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u8df3\u8fc7\u6b64\u6b65\u9aa4&#xff0c;\u7ee7\u7eed\u8fdb\u884c\u4e0b\u4e00\u6b65\u3002\u5982\u679c\u8f93\u51fa\u4e0d\u662f active&#xff0c;\u5219\u9700\u8981\u624b\u52a8\u542f\u52a8 Ollama \u670d\u52a1&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl start ollama.service<\/p>\n<p>\u4e3a\u4e86\u786e\u4fdd Ollama \u670d\u52a1\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u81ea\u52a8\u8fd0\u884c&#xff0c;\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> ollama.service<\/p>\n<h5>\u7b2c 2 \u6b65&#xff1a;\u4e0b\u8f7d\u5e76\u8fd0\u884c DeepSeek-R1 \u6a21\u578b<\/h5>\n<p>DeepSeek-R1 \u6a21\u578b\u5305\u62ec\u4e86\u57fa\u4e8e Qwen \u548c Llama \u67b6\u6784\u5fae\u8c03\u7684\u591a\u4e2a\u63d0\u70bc\u6a21\u578b&#xff0c;\u8fd9\u4e9b\u6a21\u578b\u5df2\u7ecf\u9488\u5bf9\u4e0d\u540c\u7684\u6027\u80fd\u9700\u6c42\u548c\u8d44\u6e90\u9650\u5236\u8fdb\u884c\u4e86\u4f18\u5316\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7cfb\u7edf\u7684\u8d44\u6e90\u60c5\u51b5\u9009\u62e9\u9002\u5408\u7684\u6a21\u578b\u8fdb\u884c\u90e8\u7f72\u3002<\/p>\n<p>\u5728\u5b89\u88c5\u5e76\u542f\u52a8 Ollama \u540e&#xff0c;\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d\u5e76\u8fd0\u884c DeepSeek-R1 \u6a21\u578b&#xff1a;<\/p>\n<p>ollama run deepseek-r1:1.5b<\/p>\n<p>&#xff01;&#xff01;&#xff01;\u6572\u684c\u5b50&#xff01;&#xff01;&#xff01;<\/p>\n<p>\u8fd9\u91cc\u662f\u91cd\u70b9<\/p>\n<p>\u4e0b\u8f7d\u62a5\u9519<\/p>\n<p>pulling manifest<br \/>\npulling aabd4debf0c8<span class=\"token punctuation\">..<\/span>. <span class=\"token number\">100<\/span>% \u2595\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f <span class=\"token number\">1.1<\/span> GB<br \/>\npulling 369ca498f347<span class=\"token punctuation\">..<\/span>. <span class=\"token number\">100<\/span>% \u2595\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f  <span class=\"token number\">387<\/span> B<br \/>\npulling 6e4c38e1172f<span class=\"token punctuation\">..<\/span>. <span class=\"token number\">100<\/span>% \u2595\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f <span class=\"token number\">1.1<\/span> KB<br \/>\npulling f4d24e9138dd<span class=\"token punctuation\">..<\/span>. <span class=\"token number\">100<\/span>% \u2595\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f  <span class=\"token number\">148<\/span> B<br \/>\npulling a85fe2a2e58e<span class=\"token punctuation\">..<\/span>. <span class=\"token number\">100<\/span>% \u2595\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258f  <span class=\"token number\">487<\/span> B<br \/>\nverifying sha256 digest<br \/>\nwriting manifest<br \/>\nsuccess<br \/>\nError: model requires <span class=\"token function\">more<\/span> system memory <span class=\"token punctuation\">(<\/span><span class=\"token number\">1.6<\/span> GiB<span class=\"token punctuation\">)<\/span> than is available <span class=\"token punctuation\">(<\/span><span class=\"token number\">1.3<\/span> GiB<span class=\"token punctuation\">)<\/span><br \/>\nroot&#064;ecs-1a28:~<span class=\"token comment\"># <\/span><br \/>\nroot&#064;ecs-1a28:~<span class=\"token comment\"># <\/span><\/p>\n<p>\u95ee\u9898\u5206\u6790<\/p>\n<p> \u5185\u5b58\u9650\u5236:<br \/>\n    \u4f60\u7684\u670d\u52a1\u5668\u53ea\u6709 2 GiB \u5185\u5b58&#xff0c;\u5bf9\u4e8e\u8fd0\u884c\u50cf DeepSeek-R1:7B \u8fd9\u6837\u7684\u6a21\u578b\u6765\u8bf4&#xff0c;\u663e\u7136\u662f\u4e0d\u8db3\u7684\u3002<\/p>\n<p>\u4f60\u76842\u68382g\u670d\u52a1\u5668\u5927\u6982\u7387\u662f\u65e0\u6cd5\u5b89\u88c5\u8fd0\u884c\u6a21\u578b\u7684&#xff0c;\u5c31\u8fde\u6700\u5c0f\u76841.5b\u53c2\u6570\u4e5f\u4e0d\u884c&#xff01;<\/p>\n<p>\u8fd9\u91cc\u6211\u4eec\u5c31\u8981\u7528\u9b54\u6cd5\u5566&#xff0c;\u76f4\u63a5\u9020\u51fa\u676510\u4e2aG\u7684\u865a\u62df\u5185\u5b58\u6765\u8fd0\u884c\u6211\u4eec\u7684\u6a21\u578b&#xff01;<\/p>\n<h5>\u865a\u62df\u5185\u5b58<\/h5>\n<p>\u865a\u62df\u5185\u5b58 \u662f\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9b\u7684\u4e00\u79cd\u5185\u5b58\u7ba1\u7406\u673a\u5236&#xff0c;\u5b83\u4f7f\u8ba1\u7b97\u673a\u80fd\u591f\u6269\u5c55\u5176\u6709\u6548\u5185\u5b58\u7684\u5927\u5c0f\u3002\u901a\u8fc7\u865a\u62df\u5185\u5b58&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u80fd\u591f\u5c06\u90e8\u5206\u5185\u5b58\u5185\u5bb9&#xff08;\u4e0d\u5e38\u7528\u7684\u90e8\u5206&#xff09;\u4ece \u7269\u7406\u5185\u5b58&#xff08;RAM&#xff09;\u8fc1\u79fb\u5230 \u786c\u76d8 \u6216 SSD \u4e0a&#xff0c;\u5f62\u6210\u4e00\u4e2a \u865a\u62df\u5185\u5b58\u7a7a\u95f4\u3002 \u865a\u62df\u5185\u5b58\u7684\u5173\u952e\u6982\u5ff5&#xff1a;<\/p>\n<p>\u7269\u7406\u5185\u5b58&#xff1a;\u662f\u8ba1\u7b97\u673a\u4e2d\u7684\u5b9e\u9645\u5185\u5b58&#xff08;RAM&#xff09;\u3002\u5f53\u7cfb\u7edf\u8fd0\u884c\u7a0b\u5e8f\u65f6&#xff0c;\u5b83\u4f1a\u5c06\u6570\u636e\u52a0\u8f7d\u5230\u7269\u7406\u5185\u5b58\u4e2d\u3002<br \/>\nSwap \u7a7a\u95f4&#xff08;\u4ea4\u6362\u7a7a\u95f4&#xff09;&#xff1a;Swap \u662f\u786c\u76d8\u4e0a\u7684\u4e00\u5757\u7a7a\u95f4&#xff0c;\u7528\u4f5c\u6269\u5c55\u5185\u5b58\u7684\u8865\u5145\u3002\u5f53\u7269\u7406\u5185\u5b58\u4e0d\u591f\u7528\u65f6&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u5c06\u4e0d\u6d3b\u8dc3\u7684\u6570\u636e\u6216\u8fdb\u7a0b\u4ece\u7269\u7406\u5185\u5b58\u79fb\u52a8\u5230 Swap \u7a7a\u95f4\u3002<br \/>\n\u5206\u9875\u673a\u5236&#xff1a;\u64cd\u4f5c\u7cfb\u7edf\u4f7f\u7528\u5206\u9875\u673a\u5236\u5c06\u5185\u5b58\u5212\u5206\u4e3a\u56fa\u5b9a\u5927\u5c0f\u7684\u5757&#xff08;\u9875&#xff09;&#xff0c;\u5f53\u7269\u7406\u5185\u5b58\u4e0d\u8db3\u65f6&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u5c06\u4e00\u4e9b\u9875\u9762\u6570\u636e\u4ea4\u6362\u5230 Swap \u4e2d\u3002<\/p>\n<p>\u865a\u62df\u5185\u5b58\u7684\u5de5\u4f5c\u539f\u7406&#xff1a;<\/p>\n<p>\u5185\u5b58\u7ba1\u7406&#xff1a;\u5f53\u7a0b\u5e8f\u9700\u8981\u66f4\u591a\u5185\u5b58\u65f6&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u68c0\u67e5\u7269\u7406\u5185\u5b58\u548c Swap \u7a7a\u95f4\u3002\u5982\u679c\u7269\u7406\u5185\u5b58\u4e0d\u8db3&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u628a\u90e8\u5206\u5185\u5bb9\u8f6c\u79fb\u5230 Swap \u7a7a\u95f4&#xff0c;\u91ca\u653e\u51fa\u66f4\u591a\u7a7a\u95f4\u7ed9\u5f53\u524d\u8fd0\u884c\u7684\u7a0b\u5e8f\u3002<br \/>\n\u5185\u5b58\u4ea4\u6362&#xff1a;\u5f53\u7a0b\u5e8f\u4e0d\u518d\u9891\u7e41\u4f7f\u7528\u67d0\u4e9b\u6570\u636e\u65f6&#xff0c;\u5b83\u4f1a\u88ab\u79fb\u52a8\u5230 Swap \u7a7a\u95f4\u3002\u5f53\u8fd9\u4e9b\u6570\u636e\u518d\u6b21\u9700\u8981\u65f6&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u628a\u5b83\u4eec\u4ece Swap \u7a7a\u95f4\u8bfb\u53d6\u56de\u6765\u3002<\/p>\n<p>\u8fd9\u91cc\u6211\u5927\u6982\u63a8\u7b97\u7684\u4e00\u4e2a\u6a21\u578b\u5185\u5b58\u5360\u6bd4<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7 7B \u6a21\u578b\u5185\u5b58\u9700\u6c42\u4e0e\u53c2\u6570\u91cf\u7684\u6bd4\u4f8b \u6765\u4f30\u7b97\u5176\u4ed6\u6a21\u578b\u7684 \u5185\u5b58\u9700\u6c42\u3002\u5047\u8bbe 1.5B \u6a21\u578b \u9700\u8981\u5927\u7ea6 1.2 GiB \u7684\u5185\u5b58&#xff08;\u6309 7B \u6a21\u578b\u7684 5.6 GiB \u5185\u5b58\u6bd4\u4f8b\u63a8\u7b97&#xff09;&#xff0c;\u6211\u4eec\u5c06\u7ee7\u7eed\u4f7f\u7528\u8fd9\u4e2a\u6bd4\u4f8b\u6765\u63a8\u7b97\u5176\u4ed6\u6a21\u578b\u7684\u5185\u5b58\u9700\u6c42\u3002<\/p>\n<p>\u5047\u8bbe\u5185\u5b58\u9700\u6c42\u4e0e\u53c2\u6570\u91cf\u5448\u7ebf\u6027\u5173\u7cfb&#xff1a;<\/p>\n<p>7B \u6a21\u578b\u5185\u5b58\u9700\u6c42: 5.6 GiB<br \/>\n1.5B \u6a21\u578b\u5185\u5b58\u9700\u6c42: 5.6\u00d70.214\u22481.25.6\u00d70.214\u22481.2 GiB<\/p>\n<p>\u63a8\u7b97\u5176\u4ed6\u6a21\u578b\u7684\u5185\u5b58\u9700\u6c42<\/p>\n<table>\n<tr>\u6a21\u578b\u540d\u79f0\u53c2\u6570\u91cf\u5185\u5b58\u9700\u6c42\u4f30\u7b97&#xff08;GiB&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>DeepSeek-R1:1.5B<\/td>\n<td>1.5B<\/td>\n<td>1.2 GiB<\/td>\n<\/tr>\n<tr>\n<td>DeepSeek-R1:3B<\/td>\n<td>3B<\/td>\n<td>2.4 GiB<\/td>\n<\/tr>\n<tr>\n<td>DeepSeek-R1:7B<\/td>\n<td>7B<\/td>\n<td>5.6 GiB<\/td>\n<\/tr>\n<tr>\n<td>DeepSeek-R1:14B<\/td>\n<td>14B<\/td>\n<td>11.2 GiB<\/td>\n<\/tr>\n<tr>\n<td>DeepSeek-R1:32B<\/td>\n<td>32B<\/td>\n<td>25.6 GiB<\/td>\n<\/tr>\n<tr>\n<td>DeepSeek-R1:70B<\/td>\n<td>70B<\/td>\n<td>56 GiB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5728\u4f60\u7684 Ubuntu 22.04 \u670d\u52a1\u5668\u4e0a&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u518d\u589e\u52a0 10GB \u7684 Swap&#xff08;\u865a\u62df\u5185\u5b58&#xff09;&#xff1a;<\/p>\n<hr \/>\n<h4>\u6b65\u9aa4 1&#xff1a;\u521b\u5efa\u65b0\u7684 Swap \u6587\u4ef6<\/h4>\n<li>\u521b\u5efa\u4e00\u4e2a 10GB \u7684 Swap \u6587\u4ef6&#xff1a;<span class=\"token function\">sudo<\/span> fallocate <span class=\"token parameter variable\">-l<\/span> 10G \/swapfile2\n <\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102252-680227fc9daa1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5982\u679c fallocate \u4e0d\u53ef\u7528&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4ee3\u66ff&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">dd<\/span> <span class=\"token assign-left variable\">if<\/span><span class=\"token operator\">&#061;<\/span>\/dev\/zero <span class=\"token assign-left variable\">of<\/span><span class=\"token operator\">&#061;<\/span>\/swapfile2 <span class=\"token assign-left variable\">bs<\/span><span class=\"token operator\">&#061;<\/span>1G <span class=\"token assign-left variable\">count<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">10<\/span><\/p>\n<li>\n<p>\u8bbe\u7f6e\u6587\u4ef6\u6743\u9650&#xff1a; \u786e\u4fdd Swap \u6587\u4ef6\u53ea\u6709 root \u7528\u6237\u53ef\u4ee5\u8bbf\u95ee&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token number\">600<\/span> \/swapfile2\n <\/li>\n<li>\n<p>\u5c06\u6587\u4ef6\u8bbe\u7f6e\u4e3a Swap&#xff1a; \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06\u6587\u4ef6\u8bbe\u7f6e\u4e3a Swap \u7a7a\u95f4&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> <span class=\"token function\">mkswap<\/span> \/swapfile2\n <\/li>\n<li>\n<p>\u542f\u7528\u65b0\u7684 Swap \u6587\u4ef6&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> <span class=\"token function\">swapon<\/span> \/swapfile2\n <\/li>\n<hr \/>\n<h4>\u6b65\u9aa4 2&#xff1a;\u9a8c\u8bc1 Swap \u662f\u5426\u589e\u52a0<\/h4>\n<li>\n<p>\u68c0\u67e5 Swap \u7a7a\u95f4&#xff1a;<\/p>\n<p> <span class=\"token function\">free<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<p>\u4f60\u5e94\u8be5\u770b\u5230\u603b\u7684 Swap \u7a7a\u95f4\u589e\u52a0\u4e86 10GB\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102252-680227fca7da8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u663e\u793a\u6240\u6709\u542f\u7528\u7684 Swap \u6587\u4ef6&#xff1a;<\/p>\n<p> <span class=\"token function\">swapon<\/span> <span class=\"token parameter variable\">&#8211;show<\/span><\/p>\n<p>\u4f60\u5e94\u8be5\u770b\u5230 \/swapfile2 \u5728\u5217\u8868\u4e2d\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102252-680227fcb3278.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<hr \/>\n<h4>\u6b65\u9aa4 3&#xff1a;\u786e\u4fdd Swap \u6587\u4ef6\u5728\u7cfb\u7edf\u91cd\u542f\u540e\u4ecd\u7136\u542f\u7528<\/h4>\n<li>\n<p>\u7f16\u8f91 fstab \u6587\u4ef6&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/fstab\n <\/li>\n<li>\n<p>\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p> \/swapfile2 none swap sw 0 0\n <\/li>\n<li>\n<p>\u4fdd\u5b58\u5e76\u9000\u51fa\u3002<\/p>\n<\/li>\n<hr \/>\n<p>\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u91cd\u65b0\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d\u5b89\u88c5\u6a21\u578b<\/p>\n<p>ollama run deepseek-r1:1.5b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102252-680227fcbdd6e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u901a\u8fc7\u8fd9\u4e00\u8fc7\u7a0b&#xff0c;\u4f60\u5df2\u7ecf\u5b8c\u6210\u4e86 DeepSeek R1 \u6a21\u578b\u7684\u83b7\u53d6\u4e0e\u90e8\u7f72&#xff0c;\u63a5\u4e0b\u6765\u53ef\u4ee5\u5f00\u59cb\u8fdb\u884c\u66f4\u590d\u6742\u7684\u4efb\u52a1&#xff0c;\u6216\u8005\u6839\u636e\u9700\u8981\u8fdb\u4e00\u6b65\u4f18\u5316\u914d\u7f6e\u3002<\/p>\n<h3>Deepseek Web UI \u90e8\u7f72<\/h3>\n<hr \/>\n<h3>&#x1f7e2; 1. \u5b89\u88c5 Docker<\/h3>\n<p>\u5982\u679c\u672a\u5b89\u88c5 Docker&#xff0c;\u53ef\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-y<\/span> docker.io<br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> <span class=\"token parameter variable\">&#8211;now<\/span> <span class=\"token function\">docker<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">usermod<\/span> <span class=\"token parameter variable\">-aG<\/span> <span class=\"token function\">docker<\/span> <span class=\"token environment constant\">$USER<\/span><\/p>\n<p>\u9a8c\u8bc1 Docker \u662f\u5426\u6b63\u5e38\u8fd0\u884c&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> <span class=\"token parameter variable\">&#8211;version<\/span><br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token function\">ps<\/span><\/p>\n<hr \/>\n<h3>&#x1f7e2; 2. \u90e8\u7f72 Open WebUI<\/h3>\n<h4>1\ufe0f\u20e3 \u62c9\u53d6 WebUI \u955c\u50cf<\/h4>\n<p><span class=\"token function\">docker<\/span> pull ghcr.io\/open-webui\/open-webui:main<\/p>\n<h4>2\ufe0f\u20e3 \u8fd0\u884c WebUI<\/h4>\n<p>\u4f7f\u7528 &#8211;network&#061;host \u8ba9 WebUI \u76f4\u63a5\u8bbf\u95ee Ollama&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> run <span class=\"token parameter variable\">-d<\/span> <span class=\"token parameter variable\">&#8211;network<\/span><span class=\"token operator\">&#061;<\/span>host <span class=\"token parameter variable\">-v<\/span> open-webui:\/app\/backend\/data <span class=\"token punctuation\">\\\\<\/span><br \/>\n<span class=\"token parameter variable\">-e<\/span> <span class=\"token assign-left variable\">OLLAMA_BASE_URL<\/span><span class=\"token operator\">&#061;<\/span>http:\/\/127.0.0.1:11434 <span class=\"token punctuation\">\\\\<\/span><br \/>\n<span class=\"token parameter variable\">&#8211;name<\/span> open-webui <span class=\"token parameter variable\">&#8211;restart<\/span> always ghcr.io\/open-webui\/open-webui:main<\/p>\n<p>\u53c2\u6570\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>&#8211;network&#061;host \u4f7f WebUI \u80fd\u76f4\u63a5\u8bbf\u95ee\u672c\u673a 127.0.0.1:11434\u3002<\/li>\n<li>-v open-webui:\/app\/backend\/data \u6301\u4e45\u5316 WebUI \u6570\u636e\u3002<\/li>\n<li>-e OLLAMA_BASE_URL&#061;http:\/\/127.0.0.1:11434 \u6307\u5b9a Ollama \u5730\u5740\u3002<\/li>\n<\/ul>\n<p>\u68c0\u67e5 WebUI \u662f\u5426\u6b63\u5e38\u8fd0\u884c&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> <span class=\"token function\">ps<\/span><\/p>\n<p>\u5982\u679c\u6210\u529f&#xff0c;\u72b6\u6001\u5e94\u4e3a Up (healthy)&#xff1a;<\/p>\n<p>CONTAINER ID   IMAGE                                STATUS         PORTS   NAMES<br \/>\nabcd1234       ghcr.io\/open-webui\/open-webui:main   Up (healthy)   &#8230;     open-webui<\/p>\n<p>\u67e5\u770b WebUI \u65e5\u5fd7&#xff08;\u6392\u67e5\u9519\u8bef&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> logs open-webui <span class=\"token parameter variable\">&#8211;tail<\/span> <span class=\"token number\">50<\/span><\/p>\n<hr \/>\n<h3>&#x1f7e2; 3. \u786e\u4fdd WebUI \u7aef\u53e3\u53ef\u8bbf\u95ee<\/h3>\n<h4>1\ufe0f\u20e3 \u68c0\u67e5 WebUI \u662f\u5426\u76d1\u542c 8080 \u7aef\u53e3<\/h4>\n<p>ss <span class=\"token parameter variable\">-tulnp<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token number\">8080<\/span><\/p>\n<p>\u5982\u679c\u672a\u76d1\u542c&#xff0c;\u5c1d\u8bd5\u91cd\u65b0\u542f\u52a8 WebUI&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> restart open-webui<\/p>\n<h4>2\ufe0f\u20e3 \u786e\u4fdd\u9632\u706b\u5899\u5f00\u653e 8080 \u7aef\u53e3<\/h4>\n<p><span class=\"token function\">sudo<\/span> ufw allow <span class=\"token number\">8080<\/span>\/tcp<br \/>\n<span class=\"token function\">sudo<\/span> ufw status<\/p>\n<p>\u5e94\u770b\u5230&#xff1a;<\/p>\n<p>8080 ALLOW Anywhere<\/p>\n<h4>3\ufe0f\u20e3 \u786e\u4fdd\u4e91\u670d\u52a1\u5668\u5b89\u5168\u7ec4\u5f00\u653e 8080 \u7aef\u53e3<\/h4>\n<p>\u5982\u679c\u4f7f\u7528 \u963f\u91cc\u4e91 \/ \u817e\u8baf\u4e91 \/ \u534e\u4e3a\u4e91&#xff0c;\u9700\u5728 \u4e91\u670d\u52a1\u5668\u5b89\u5168\u7ec4 \u4e2d\u6dfb\u52a0 \u5165\u7ad9\u89c4\u5219&#xff1a;<\/p>\n<ul>\n<li>\u534f\u8bae: TCP<\/li>\n<li>\u7aef\u53e3\u8303\u56f4: 8080<\/li>\n<li>\u6765\u6e90: 0.0.0.0\/0<\/li>\n<\/ul>\n<hr \/>\n<h3>&#x1f7e2; 4. \u8bbf\u95ee WebUI<\/h3>\n<p>\u5728\u672c\u5730\u6d4f\u89c8\u5668\u6253\u5f00&#xff1a;<\/p>\n<p>http:\/\/&lt;\u4f60\u7684\u670d\u52a1\u5668\u516c\u7f51IP&gt;:8080<\/p>\n<p>\u5982\u679c\u9875\u9762\u52a0\u8f7d\u6b63\u5e38&#xff0c;\u8bf4\u660e\u90e8\u7f72\u6210\u529f &#x1f389;\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u5c31\u662f\u6ce8\u518c\u767b\u5f55&#xff0c;\u53ef\u4ee5\u628aip\u53d1\u7ed9\u5c0f\u4f19\u4f34\u4e00\u8d77\u4f7f\u7528\u5566&#xff01;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102252-680227fcc9ebf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102253-680227fd6335c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102253-680227fdebe5b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h3>&#x1f534; \u5982\u679c\u4ecd\u7136\u65e0\u6cd5\u8bbf\u95ee<\/h3>\n<h4>1\ufe0f\u20e3 \u6d4b\u8bd5\u670d\u52a1\u5668\u672c\u5730\u8bbf\u95ee<\/h4>\n<p>\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884c&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> http:\/\/127.0.0.1:8080<\/p>\n<p>\u5982\u679c\u6709\u8fd4\u56de HTML \u6216 JSON&#xff0c;\u8bf4\u660e WebUI \u5728\u672c\u673a\u8fd0\u884c\u6b63\u5e38&#xff0c;\u95ee\u9898\u53ef\u80fd\u662f \u9632\u706b\u5899\u6216\u5b89\u5168\u7ec4 \u5bfc\u81f4\u7684\u3002<\/p>\n<h4>2\ufe0f\u20e3 \u68c0\u67e5 WebUI \u65e5\u5fd7<\/h4>\n<p><span class=\"token function\">docker<\/span> logs open-webui <span class=\"token parameter variable\">&#8211;tail<\/span> <span class=\"token number\">50<\/span><\/p>\n<p>\u5982\u679c\u65e5\u5fd7\u4e2d\u6709 Connection Refused&#xff0c;\u53ef\u80fd\u662f&#xff1a;<\/p>\n<ul>\n<li>OLLAMA_BASE_URL \u672a\u6b63\u786e\u8bbe\u7f6e\u3002<\/li>\n<li>WebUI \u6ca1\u6709\u6b63\u786e\u8fde\u63a5\u5230 Ollama\u3002<\/li>\n<\/ul>\n<h4>3\ufe0f\u20e3 \u786e\u4fdd WebUI \u8fde\u63a5\u5230 Ollama<\/h4>\n<p><span class=\"token function\">curl<\/span> http:\/\/127.0.0.1:11434\/api\/tags<\/p>\n<p>\u5982\u679c\u8fd4\u56de&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><span class=\"token string-property property\">&#034;models&#034;<\/span><span class=\"token operator\">:<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;deepseek-r1:1.5b&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8bf4\u660e Ollama \u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p>\u5982\u679c \u65e0\u6cd5\u8fde\u63a5&#xff0c;\u5c1d\u8bd5&#xff1a;<\/p>\n<p>ollama serve <span class=\"token operator\">&amp;<\/span><br \/>\n<span class=\"token function\">docker<\/span> restart open-webui<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.2k\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf37\u6b21\u3002DeepSeek\u662f\u4e00\u6b3e\u7531\u56fd\u5185\u4eba\u5de5\u667a\u80fd\u516c\u53f8\u7814\u53d1\u7684\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff0c\u62e5\u6709\u5f3a\u5927\u7684\u81ea\u7136\u8bed\u8a00\u5904\u7406\u80fd\u529b\uff0c\u80fd\u591f\u7406\u89e3\u5e76\u56de\u7b54\u95ee\u9898\uff0c\u8fd8\u80fd\u8f85\u52a9\u5199\u4ee3\u7801\u3001\u6574\u7406\u8d44\u6599\u548c\u89e3\u51b3\u590d\u6742\u7684\u6570\u5b66\u95ee\u9898\u3002\u4e00\u7ecf\u53d1\u5e03\uff0cDeepSeek\u5f00\u53d1\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u8d85\u8d8aOpenAI\u7684ChatGPT\uff0c\u767b\u9876\u82f9\u679c\u624b\u673a\u5e94\u7528\u5546\u5e97\u7f8e\u56fd\u533a\u3001\u4e2d\u56fd\u533a\u514d\u8d39\u5e94\u7528\u699c\u5355\u3002\u4e0eOpenAI\u5f00\u53d1\u7684ChatGPT\u76f8\u6bd4\uff0cDeepSeek\u4e0d\u4ec5\u7387\u5148\u5b9e\u73b0\u4e86\u5ab2\u7f8eOpenAI-o1\u6a21\u578b\u7684\u6548\u679c\uff0c\u8fd8\u5927\u5e45\u964d\u4f4e\u4e86\u63a8\u7406\u6a21\u578b\u7684\u6210\u672c\u3002_2g\u8fd0\u884c\u5185\u5b58\u8dd1deepseek<\/p>\n","protected":false},"author":2,"featured_media":10955,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[68,50,43,44],"topic":[],"class_list":["post-10967","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-deepseek","tag-50","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>\u624b\u628a\u624b\u6559\u4f60\u5982\u4f55\u5728\u4e00\u53f02\u68382gECS\u670d\u52a1\u5668\u8dd1Deepseek R1\u6a21\u578b - \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\/10967.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u624b\u628a\u624b\u6559\u4f60\u5982\u4f55\u5728\u4e00\u53f02\u68382gECS\u670d\u52a1\u5668\u8dd1Deepseek R1\u6a21\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.2k\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf37\u6b21\u3002DeepSeek\u662f\u4e00\u6b3e\u7531\u56fd\u5185\u4eba\u5de5\u667a\u80fd\u516c\u53f8\u7814\u53d1\u7684\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff0c\u62e5\u6709\u5f3a\u5927\u7684\u81ea\u7136\u8bed\u8a00\u5904\u7406\u80fd\u529b\uff0c\u80fd\u591f\u7406\u89e3\u5e76\u56de\u7b54\u95ee\u9898\uff0c\u8fd8\u80fd\u8f85\u52a9\u5199\u4ee3\u7801\u3001\u6574\u7406\u8d44\u6599\u548c\u89e3\u51b3\u590d\u6742\u7684\u6570\u5b66\u95ee\u9898\u3002\u4e00\u7ecf\u53d1\u5e03\uff0cDeepSeek\u5f00\u53d1\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u8d85\u8d8aOpenAI\u7684ChatGPT\uff0c\u767b\u9876\u82f9\u679c\u624b\u673a\u5e94\u7528\u5546\u5e97\u7f8e\u56fd\u533a\u3001\u4e2d\u56fd\u533a\u514d\u8d39\u5e94\u7528\u699c\u5355\u3002\u4e0eOpenAI\u5f00\u53d1\u7684ChatGPT\u76f8\u6bd4\uff0cDeepSeek\u4e0d\u4ec5\u7387\u5148\u5b9e\u73b0\u4e86\u5ab2\u7f8eOpenAI-o1\u6a21\u578b\u7684\u6548\u679c\uff0c\u8fd8\u5927\u5e45\u964d\u4f4e\u4e86\u63a8\u7406\u6a21\u578b\u7684\u6210\u672c\u3002_2g\u8fd0\u884c\u5185\u5b58\u8dd1deepseek\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/10967.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T10:22:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102251-680227fb84e4c.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=\"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\/10967.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/10967.html\",\"name\":\"\u624b\u628a\u624b\u6559\u4f60\u5982\u4f55\u5728\u4e00\u53f02\u68382gECS\u670d\u52a1\u5668\u8dd1Deepseek R1\u6a21\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T10:22:55+00:00\",\"dateModified\":\"2025-04-18T10:22:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/10967.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/10967.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/10967.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u624b\u628a\u624b\u6559\u4f60\u5982\u4f55\u5728\u4e00\u53f02\u68382gECS\u670d\u52a1\u5668\u8dd1Deepseek R1\u6a21\u578b\"}]},{\"@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":"\u624b\u628a\u624b\u6559\u4f60\u5982\u4f55\u5728\u4e00\u53f02\u68382gECS\u670d\u52a1\u5668\u8dd1Deepseek R1\u6a21\u578b - \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\/10967.html","og_locale":"zh_CN","og_type":"article","og_title":"\u624b\u628a\u624b\u6559\u4f60\u5982\u4f55\u5728\u4e00\u53f02\u68382gECS\u670d\u52a1\u5668\u8dd1Deepseek R1\u6a21\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.2k\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf37\u6b21\u3002DeepSeek\u662f\u4e00\u6b3e\u7531\u56fd\u5185\u4eba\u5de5\u667a\u80fd\u516c\u53f8\u7814\u53d1\u7684\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff0c\u62e5\u6709\u5f3a\u5927\u7684\u81ea\u7136\u8bed\u8a00\u5904\u7406\u80fd\u529b\uff0c\u80fd\u591f\u7406\u89e3\u5e76\u56de\u7b54\u95ee\u9898\uff0c\u8fd8\u80fd\u8f85\u52a9\u5199\u4ee3\u7801\u3001\u6574\u7406\u8d44\u6599\u548c\u89e3\u51b3\u590d\u6742\u7684\u6570\u5b66\u95ee\u9898\u3002\u4e00\u7ecf\u53d1\u5e03\uff0cDeepSeek\u5f00\u53d1\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u8d85\u8d8aOpenAI\u7684ChatGPT\uff0c\u767b\u9876\u82f9\u679c\u624b\u673a\u5e94\u7528\u5546\u5e97\u7f8e\u56fd\u533a\u3001\u4e2d\u56fd\u533a\u514d\u8d39\u5e94\u7528\u699c\u5355\u3002\u4e0eOpenAI\u5f00\u53d1\u7684ChatGPT\u76f8\u6bd4\uff0cDeepSeek\u4e0d\u4ec5\u7387\u5148\u5b9e\u73b0\u4e86\u5ab2\u7f8eOpenAI-o1\u6a21\u578b\u7684\u6548\u679c\uff0c\u8fd8\u5927\u5e45\u964d\u4f4e\u4e86\u63a8\u7406\u6a21\u578b\u7684\u6210\u672c\u3002_2g\u8fd0\u884c\u5185\u5b58\u8dd1deepseek","og_url":"https:\/\/www.wsisp.com\/helps\/10967.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T10:22:55+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418102251-680227fb84e4c.png"}],"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\/10967.html","url":"https:\/\/www.wsisp.com\/helps\/10967.html","name":"\u624b\u628a\u624b\u6559\u4f60\u5982\u4f55\u5728\u4e00\u53f02\u68382gECS\u670d\u52a1\u5668\u8dd1Deepseek R1\u6a21\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T10:22:55+00:00","dateModified":"2025-04-18T10:22:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/10967.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/10967.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/10967.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u624b\u628a\u624b\u6559\u4f60\u5982\u4f55\u5728\u4e00\u53f02\u68382gECS\u670d\u52a1\u5668\u8dd1Deepseek R1\u6a21\u578b"}]},{"@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\/10967","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=10967"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/10967\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/10955"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=10967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=10967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=10967"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=10967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}