{"id":379,"date":"2025-05-22T10:44:08","date_gmt":"2025-05-22T02:44:08","guid":{"rendered":"https:\/\/www.tysql.com\/?p=379"},"modified":"2025-05-22T10:59:25","modified_gmt":"2025-05-22T02:59:25","slug":"__trashed","status":"publish","type":"post","link":"https:\/\/www.tysql.com\/index.php\/2025\/05\/22\/__trashed\/","title":{"rendered":"\u5b89\u88c5deepseek"},"content":{"rendered":"\n<p>1.\u5b89\u88c5ollama<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;apl&quot;,&quot;mime&quot;:&quot;text\/apl&quot;,&quot;theme&quot;:&quot;darcula&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;APL&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;apl&quot;}\">1<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;apl&quot;,&quot;mime&quot;:&quot;text\/apl&quot;,&quot;theme&quot;:&quot;darcula&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;APL&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;apl&quot;}\"># \u4e0b\u8f7dollama\ncurl -fsSL https:\/\/ollama.com\/install.sh | sh\n# \u4e0b\u8f7d\u6a21\u578b\nollama run deepseek-r1:1.5b\nollama run deepseek-r1:7b\nollama run deepseek-r1:8b<\/pre><\/div>\n\n\n\n<p>2.\u8bbe\u7f6eollama\u76d1\u542c<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;apl&quot;,&quot;mime&quot;:&quot;text\/apl&quot;,&quot;theme&quot;:&quot;darcula&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;APL&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;apl&quot;}\"># 1. \u7f16\u8f91 ollama.service\nvim \/etc\/systemd\/system\/ollama.service\n# 2.\u5728 [Service] \u90e8\u5206\uff0cEnvironment\u4e0b\u9762\u6dfb\u52a0\uff1a\nEnvironment=&quot;OLLAMA_HOST=0.0.0.0&quot;\nEnvironment=&quot;OLLAMA_ORIGINS=*&quot;\n# 3.\u91cd\u65b0\u52a0\u8f7d systemd \u5e76\u91cd\u542f Ollama\uff1a\nsystemctl daemon-reload\nsystemctl restart ollama<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"524\" height=\"200\" src=\"https:\/\/www.tysql.com\/wp-content\/uploads\/2025\/04\/image.png\" alt=\"\" class=\"wp-image-382\" style=\"width:690px;height:auto\" srcset=\"https:\/\/www.tysql.com\/wp-content\/uploads\/2025\/04\/image.png 524w, https:\/\/www.tysql.com\/wp-content\/uploads\/2025\/04\/image-300x115.png 300w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/><\/figure>\n\n\n\n<p>\u5176\u4ed6\u76f8\u5173\u547d\u4ee4:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;apl&quot;,&quot;mime&quot;:&quot;text\/apl&quot;,&quot;theme&quot;:&quot;darcula&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;APL&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;apl&quot;}\"># \u67e5\u770b Ollama \u8fd0\u884c\u72b6\u6001\uff1a\nsystemctl status ollama\n# \u67e5\u770b\u663e\u5b58\u5360\u7528\uff1a\nnvidia-smi\napt-get install nvtop -y\nnvtop<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5b89\u88c5ollama 2.\u8bbe\u7f6eollama\u76d1\u542c \u5176\u4ed6\u76f8\u5173\u547d\u4ee4:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-379","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/posts\/379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/comments?post=379"}],"version-history":[{"count":13,"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/posts\/379\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/posts\/379\/revisions\/401"}],"wp:attachment":[{"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/media?parent=379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/categories?post=379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/tags?post=379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}