{"id":86540,"date":"2026-07-28T21:33:39","date_gmt":"2026-07-28T13:33:39","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/86540.html"},"modified":"2026-07-28T21:33:39","modified_gmt":"2026-07-28T13:33:39","slug":"%e5%9c%a8-ubuntu-22-04-%e6%9c%80%e5%b0%8f%e5%8c%96%e5%ae%89%e8%a3%85%e4%b8%8a%e9%83%a8%e7%bd%b2%e4%b8%8e%e8%b0%83%e4%bc%98-ollama-%e9%9b%86%e7%be%a4","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/86540.html","title":{"rendered":"\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u4e0a\u90e8\u7f72\u4e0e\u8c03\u4f18 Ollama \u96c6\u7fa4"},"content":{"rendered":"<h3>\u6458\u8981<\/h3>\n<p>\u672c\u6587\u8be6\u7ec6\u6307\u5bfc\u5982\u4f55\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u7cfb\u7edf\u4e0a&#xff0c;\u4ece\u96f6\u90e8\u7f72 Ollama \u670d\u52a1&#xff0c;\u5e76\u6784\u5efa\u4e00\u4e2a\u9ad8\u53ef\u7528\u3001\u9ad8\u6027\u80fd\u7684\u96c6\u7fa4\u4ee5\u652f\u6491 2000 \u4eba\u89c4\u6a21\u7684\u5e76\u53d1\u4f7f\u7528\u3002\u5185\u5bb9\u6db5\u76d6\u7cfb\u7edf\u51c6\u5907\u3001Ollama \u5b89\u88c5\u3001\u96c6\u7fa4\u67b6\u6784\u8bbe\u8ba1\u3001\u8d1f\u8f7d\u5747\u8861\u914d\u7f6e\u3001\u6a21\u578b\u7ba1\u7406\u4e0e\u5206\u53d1\u3001\u6027\u80fd\u8c03\u4f18&#xff08;\u5305\u62ec GPU \u52a0\u901f\u3001\u5185\u5b58\u4f18\u5316\u3001\u7f51\u7edc\u4e0e\u5b58\u50a8\u4f18\u5316&#xff09;\u4ee5\u53ca\u76d1\u63a7\u8fd0\u7ef4\u65b9\u6848&#xff0c;\u65e8\u5728\u4e3a\u4f01\u4e1a\u7ea7 AI \u5e94\u7528\u63d0\u4f9b\u7a33\u5b9a\u3001\u9ad8\u6548\u7684\u57fa\u7840\u8bbe\u65bd\u3002<\/p>\n<h3>1. \u7cfb\u7edf\u73af\u5883\u51c6\u5907\u4e0e\u6700\u5c0f\u5316\u5b89\u88c5<\/h3>\n<p>Ubuntu 22.04 Server \u6700\u5c0f\u5316\u5b89\u88c5\u63d0\u4f9b\u4e86\u6700\u7cbe\u7b80\u7684\u57fa\u7840&#xff0c;\u662f\u6784\u5efa\u7a33\u5b9a\u751f\u4ea7\u73af\u5883\u7684\u7406\u60f3\u8d77\u70b9\u3002<\/p>\n<h4>1.1 \u7cfb\u7edf\u5b89\u88c5\u4e0e\u57fa\u7840\u914d\u7f6e<\/h4>\n<ul>\n<li>\u5b89\u88c5\u5a92\u4ecb&#xff1a;\u4ece Ubuntu \u5b98\u7f51\u4e0b\u8f7d Ubuntu 22.04.4 LTS Server ISO \u955c\u50cf\u3002<\/li>\n<li>\u5b89\u88c5\u8fc7\u7a0b&#xff1a;\u5728\u5b89\u88c5\u7c7b\u578b\u9009\u62e9\u754c\u9762&#xff0c;\u52a1\u5fc5\u52fe\u9009\u201cMinimal installation\u201d&#xff08;\u6700\u5c0f\u5316\u5b89\u88c5&#xff09;&#xff0c;\u5e76\u53d6\u6d88\u6240\u6709\u9884\u88c5\u8f6f\u4ef6\u9009\u9879\u3002\u5206\u533a\u5efa\u8bae&#xff1a;\u6839\u76ee\u5f55&#xff08;\/&#xff09;\u81f3\u5c11 100GB&#xff0c;\u4ea4\u6362\u5206\u533a&#xff08;swap&#xff09;\u6839\u636e\u7269\u7406\u5185\u5b58\u5927\u5c0f\u8bbe\u7f6e&#xff08;\u4f8b\u5982 64GB \u5185\u5b58\u53ef\u8bbe 8-16GB swap&#xff09;\u3002<\/li>\n<li>\u7f51\u7edc\u914d\u7f6e&#xff1a;\u914d\u7f6e\u9759\u6001 IP \u5730\u5740&#xff0c;\u786e\u4fdd\u670d\u52a1\u5668\u5728\u5c40\u57df\u7f51\u5185\u62e5\u6709\u56fa\u5b9a\u5730\u5740&#xff0c;\u4fbf\u4e8e\u96c6\u7fa4\u8282\u70b9\u95f4\u901a\u4fe1\u3002<\/li>\n<\/ul>\n<h4>1.2 \u5b89\u88c5\u540e\u5fc5\u5907\u8f6f\u4ef6\u5305<\/h4>\n<p>\u66f4\u65b0\u7cfb\u7edf\u5e76\u5b89\u88c5\u5fc5\u8981\u7684\u5de5\u5177\u548c\u4f9d\u8d56&#xff1a;<\/p>\n<p># \u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868\u5e76\u5347\u7ea7\u7cfb\u7edf<br \/>\nsudo apt update &amp;&amp; sudo apt upgrade -y<br \/>\n\u5b89\u88c5\u57fa\u7840\u5de5\u5177<br \/>\nsudo apt install -y curl wget git vim htop net-tools ntpdate<br \/>\n\u5b89\u88c5 Docker \u8fd0\u884c\u65f6&#xff08;Ollama \u5b98\u65b9\u63a8\u8350\u4f7f\u7528\u5bb9\u5668\u90e8\u7f72&#xff09;<br \/>\nsudo apt install -y docker.io<br \/>\nsudo systemctl enable &#8211;now docker<br \/>\nsudo usermod -aG docker $USER  # \u5c06\u5f53\u524d\u7528\u6237\u52a0\u5165 docker \u7ec4&#xff0c;\u9700\u91cd\u65b0\u767b\u5f55\u751f\u6548<br \/>\n\u5b89\u88c5 NVIDIA \u5bb9\u5668\u5de5\u5177\u5305&#xff08;\u5982\u679c\u4f7f\u7528 NVIDIA GPU&#xff09;<br \/>\n\u8bf7\u5148\u786e\u4fdd\u5df2\u5b89\u88c5 NVIDIA \u9a71\u52a8\u548c CUDA Toolkit<br \/>\ndistribution&#061;$(. \/etc\/os-release;echo $ID$VERSION_ID)<br \/>\ncurl -fsSL https:\/\/nvidia.github.io\/libnvidia-container\/gpgkey | sudo gpg &#8211;dearmor -o \/usr\/share\/keyrings\/nvidia-container-toolkit-keyring.gpg<br \/>\ncurl -s -L https:\/\/nvidia.github.io\/libnvidia-container\/$distribution\/libnvidia-container.list | <\/p>\n<p>sed &#039;s#deb https:\/\/#deb [signed-by&#061;\/usr\/share\/keyrings\/nvidia-container-toolkit-keyring.gpg] https:\/\/#g&#039; | <\/p>\n<p>sudo tee \/etc\/apt\/sources.list.d\/nvidia-container-toolkit.list<br \/>\nsudo apt update<br \/>\nsudo apt install -y nvidia-container-toolkit<br \/>\nsudo nvidia-ctk runtime configure &#8211;runtime&#061;docker<br \/>\nsudo systemctl restart docker<\/p>\n<h3>2. Ollama \u5355\u8282\u70b9\u90e8\u7f72<\/h3>\n<p>\u9996\u5148\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u5b8c\u6210 Ollama \u7684\u57fa\u7840\u5b89\u88c5\u548c\u9a8c\u8bc1\u3002<\/p>\n<h4>2.1 \u5b89\u88c5 Ollama<\/h4>\n<p>\u4f7f\u7528\u5b98\u65b9\u4e00\u952e\u5b89\u88c5\u811a\u672c&#xff1a;<\/p>\n<p>curl -fsSL https:\/\/ollama.com\/install.sh | sh<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u542f\u52a8 Ollama \u670d\u52a1&#xff1a;<\/p>\n<p>sudo systemctl enable &#8211;now ollama<\/p>\n<h4>2.2 \u9a8c\u8bc1\u5b89\u88c5\u4e0e\u62c9\u53d6\u6a21\u578b<\/h4>\n<p>\u68c0\u67e5\u670d\u52a1\u72b6\u6001\u5e76\u62c9\u53d6\u4e00\u4e2a\u6d4b\u8bd5\u6a21\u578b&#xff08;\u5982 Llama 3.2&#xff09;&#xff1a;<\/p>\n<p># \u68c0\u67e5\u670d\u52a1\u72b6\u6001<br \/>\nsystemctl status ollama<br \/>\n\u62c9\u53d6\u6a21\u578b&#xff08;\u9996\u6b21\u8fd0\u884c\u4f1a\u4e0b\u8f7d\u6a21\u578b\u6587\u4ef6&#xff0c;\u8017\u65f6\u8f83\u957f&#xff09;<br \/>\nollama pull llama3.2<br \/>\n\u8fd0\u884c\u4e00\u4e2a\u7b80\u5355\u7684\u4ea4\u4e92\u6d4b\u8bd5<br \/>\nollama run llama3.2 &#034;Hello, world!&#034;<\/p>\n<h3>3. \u6784\u5efa Ollama \u96c6\u7fa4\u67b6\u6784<\/h3>\n<p>\u4e3a\u652f\u6491 2000 \u4eba\u5e76\u53d1&#xff0c;\u5355\u8282\u70b9\u65e0\u6cd5\u6ee1\u8db3\u6027\u80fd\u4e0e\u53ef\u7528\u6027\u8981\u6c42&#xff0c;\u9700\u6784\u5efa\u96c6\u7fa4\u3002<\/p>\n<h4>3.1 \u96c6\u7fa4\u67b6\u6784\u8bbe\u8ba1<\/h4>\n<p>\u5efa\u8bae\u91c7\u7528\u201c\u8d1f\u8f7d\u5747\u8861\u5668 &#043; \u591a\u4e2a Ollama \u8ba1\u7b97\u8282\u70b9 &#043; \u5171\u4eab\u5b58\u50a8\/\u6a21\u578b\u4ed3\u5e93\u201d\u7684\u67b6\u6784\u3002<\/p>\n<ul>\n<li>\u8d1f\u8f7d\u5747\u8861\u5c42&#xff1a;\u4f7f\u7528 Nginx \u6216 HAProxy&#xff0c;\u8d1f\u8d23\u5c06\u7528\u6237\u8bf7\u6c42\u5206\u53d1\u5230\u540e\u7aef\u7684\u591a\u4e2a Ollama \u8282\u70b9\u3002<\/li>\n<li>\u8ba1\u7b97\u8282\u70b9\u5c42&#xff1a;\u591a\u53f0\u8fd0\u884c Ollama \u7684\u670d\u52a1\u5668&#xff0c;\u6bcf\u53f0\u53ef\u914d\u5907 GPU \u4ee5\u52a0\u901f\u63a8\u7406\u3002<\/li>\n<li>\u5b58\u50a8\u5c42&#xff1a;\u4f7f\u7528 NFS\u3001Ceph \u6216\u5bf9\u8c61\u5b58\u50a8&#xff08;\u5982 MinIO&#xff09;\u96c6\u4e2d\u5b58\u50a8\u6a21\u578b\u6587\u4ef6&#xff0c;\u786e\u4fdd\u6240\u6709\u8282\u70b9\u6a21\u578b\u4e00\u81f4\u3002<\/li>\n<li>\u63a7\u5236\u8282\u70b9&#xff08;\u53ef\u9009&#xff09;&#xff1a;\u4e00\u53f0\u7ba1\u7406\u8282\u70b9&#xff0c;\u7528\u4e8e\u96c6\u7fa4\u76d1\u63a7\u3001\u65e5\u5fd7\u6536\u96c6\u548c\u4efb\u52a1\u8c03\u5ea6\u3002<\/li>\n<\/ul>\n<h4>3.2 \u591a\u8282\u70b9\u90e8\u7f72\u4e0e\u914d\u7f6e\u540c\u6b65<\/h4>\n<li>\u51c6\u5907\u8282\u70b9&#xff1a;\u6309\u7167\u7b2c 1\u30012 \u8282\u6b65\u9aa4&#xff0c;\u5728\u6240\u6709\u8ba1\u7b97\u8282\u70b9\u4e0a\u5b89\u88c5 Ubuntu \u548c Ollama\u3002<\/li>\n<li>\u914d\u7f6e\u5171\u4eab\u5b58\u50a8&#xff1a;\u5728\u4e00\u53f0\u5b58\u50a8\u670d\u52a1\u5668\u4e0a\u642d\u5efa NFS&#xff0c;\u5c06\u6240\u6709\u8ba1\u7b97\u8282\u70b9\u7684 \/root\/.ollama\/models \u76ee\u5f55\u6302\u8f7d\u5230\u5171\u4eab\u5b58\u50a8\u3002<\/li>\n<li>\u540c\u6b65\u914d\u7f6e&#xff1a;\u786e\u4fdd\u6240\u6709\u8282\u70b9\u7684 Ollama \u670d\u52a1\u914d\u7f6e&#xff08;\u5982\u73af\u5883\u53d8\u91cf\u3001\u7aef\u53e3&#xff09;\u4e00\u81f4\u3002<\/li>\n<h3>4. \u8d1f\u8f7d\u5747\u8861\u4e0e\u9ad8\u53ef\u7528\u914d\u7f6e<\/h3>\n<h4>4.1 \u4f7f\u7528 Nginx \u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406<\/h4>\n<p>\u5728\u8d1f\u8f7d\u5747\u8861\u5668\u4e0a\u5b89\u88c5 Nginx&#xff0c;\u5e76\u914d\u7f6e upstream \u6307\u5411\u6240\u6709 Ollama \u8282\u70b9&#xff08;\u9ed8\u8ba4\u7aef\u53e3 11434&#xff09;&#xff1a;<\/p>\n<p># \/etc\/nginx\/conf.d\/ollama_cluster.conf<br \/>\nupstream ollama_backend {<br \/>\n    # \u914d\u7f6e\u6240\u6709\u540e\u7aef Ollama \u8282\u70b9&#xff0c;\u53ef\u8bbe\u7f6e\u6743\u91cd<br \/>\n    server 192.168.1.101:11434 weight&#061;3; # \u8282\u70b91&#xff0c;\u6743\u91cd\u9ad8<br \/>\n    server 192.168.1.102:11434 weight&#061;2; # \u8282\u70b92<br \/>\n    server 192.168.1.103:11434 weight&#061;2; # \u8282\u70b93<br \/>\n    # \u53ef\u914d\u7f6e\u5065\u5eb7\u68c0\u67e5<br \/>\n}<br \/>\nserver {<br \/>\nlisten 80;<br \/>\nserver_name ollama.yourcompany.com; # \u60a8\u7684\u57df\u540d<br \/>\nlocation \/ {<br \/>\n    proxy_pass http:\/\/ollama_backend;<br \/>\n    proxy_set_header Host $host;<br \/>\n    proxy_set_header X-Real-IP $remote_addr;<br \/>\n    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n    proxy_set_header X-Forwarded-Proto $scheme;<br \/>\n    # \u8bbe\u7f6e\u8f83\u957f\u7684\u8d85\u65f6\u65f6\u95f4&#xff0c;\u9002\u5e94\u6a21\u578b\u63a8\u7406<br \/>\n    proxy_read_timeout 300s;<br \/>\n    proxy_connect_timeout 75s;<br \/>\n}<br \/>\n}<\/p>\n<p>\u91cd\u542f Nginx&#xff1a;sudo systemctl restart nginx<\/p>\n<h4>4.2 \u5b9e\u73b0\u9ad8\u53ef\u7528&#xff08;HA&#xff09;<\/h4>\n<ul>\n<li>\u8d1f\u8f7d\u5747\u8861\u5668\u9ad8\u53ef\u7528&#xff1a;\u4f7f\u7528 Keepalived &#043; VIP&#xff08;\u865a\u62df IP&#xff09;\u5b9e\u73b0 Nginx \u4e3b\u5907\u5207\u6362\u3002<\/li>\n<li>\u8282\u70b9\u5065\u5eb7\u68c0\u67e5&#xff1a;\u5728 Nginx upstream \u914d\u7f6e\u4e2d\u7ed3\u5408 max_fails \u548c fail_timeout \u53c2\u6570&#xff0c;\u81ea\u52a8\u5254\u9664\u6545\u969c\u8282\u70b9\u3002<\/li>\n<\/ul>\n<h3>5. \u6027\u80fd\u8c03\u4f18\u81f3\u6700\u4f73\u72b6\u6001<\/h3>\n<p>\u9488\u5bf9 2000 \u4eba\u5e76\u53d1&#xff0c;\u9700\u4ece\u591a\u4e2a\u7ef4\u5ea6\u8fdb\u884c\u6df1\u5ea6\u4f18\u5316\u3002<\/p>\n<h4>5.1 GPU \u52a0\u901f\u4e0e CUDA \u4f18\u5316<\/h4>\n<ul>\n<li>\u786e\u8ba4 GPU \u8bc6\u522b&#xff1a;\u5728\u6bcf\u53f0\u8ba1\u7b97\u8282\u70b9\u8fd0\u884c nvidia-smi \u786e\u8ba4 GPU \u53ef\u7528\u3002<\/li>\n<li>Ollama \u542f\u7528 GPU&#xff1a;\u786e\u4fdd Ollama \u4ee5\u652f\u6301 GPU \u7684\u6a21\u5f0f\u8fd0\u884c\u3002\u4f7f\u7528 Docker \u8fd0\u884c\u65f6&#xff0c;\u9700\u5728\u8fd0\u884c\u5bb9\u5668\u65f6\u6dfb\u52a0 &#8211;gpus all \u53c2\u6570\u3002\u5bf9\u4e8e systemd \u670d\u52a1&#xff0c;\u53ef\u4fee\u6539 Ollama \u670d\u52a1\u6587\u4ef6&#xff0c;\u5728 Environment \u4e2d\u6dfb\u52a0 OLLAMA_HOST&#061;0.0.0.0 \u5e76\u786e\u4fdd NVIDIA \u8fd0\u884c\u65f6\u53ef\u7528\u3002<\/li>\n<li>CUDA \u7248\u672c\u5339\u914d&#xff1a;\u786e\u4fdd Ollama \u4f7f\u7528\u7684 CUDA \u7248\u672c\u4e0e NVIDIA \u9a71\u52a8\u517c\u5bb9\u3002<\/li>\n<\/ul>\n<h4>5.2 \u5185\u5b58\u4e0e\u5b58\u50a8\u4f18\u5316<\/h4>\n<ul>\n<li>\u6a21\u578b\u91cf\u5316&#xff1a;\u4e3a\u751f\u4ea7\u73af\u5883\u62c9\u53d6\u91cf\u5316\u7248\u672c\u6a21\u578b&#xff08;\u5982 llama3.2:7b-q4_K_M&#xff09;&#xff0c;\u663e\u8457\u51cf\u5c11\u5185\u5b58\u5360\u7528\u548c\u63d0\u5347\u63a8\u7406\u901f\u5ea6\u3002<\/li>\n<li>\u5171\u4eab\u5185\u5b58&#xff1a;\u5728 Docker \u8fd0\u884c Ollama \u65f6&#xff0c;\u6302\u8f7d \/dev\/shm \u5e76\u8bbe\u7f6e\u8db3\u591f\u5927\u5c0f&#xff08;\u4f8b\u5982 &#8211;shm-size&#061;8g&#xff09;\u3002<\/li>\n<li>SSD \u5b58\u50a8&#xff1a;\u5c06\u6a21\u578b\u6587\u4ef6\u5b58\u50a8\u5728 NVMe SSD \u4e0a&#xff0c;\u6781\u5927\u7f29\u77ed\u6a21\u578b\u52a0\u8f7d\u65f6\u95f4\u3002<\/li>\n<li>\u7cfb\u7edf\u5185\u5b58&#xff1a;\u6839\u636e\u6a21\u578b\u5927\u5c0f\u548c\u5e76\u53d1\u6570&#xff0c;\u4e3a\u6bcf\u4e2a\u8282\u70b9\u914d\u7f6e\u5145\u8db3\u7269\u7406\u5185\u5b58\u3002\u4e00\u4e2a 7B \u53c2\u6570 q4 \u91cf\u5316\u6a21\u578b\u7ea6\u9700 4-5GB \u5185\u5b58&#xff0c;\u8003\u8651\u5e76\u53d1\u9700\u9884\u7559\u66f4\u591a\u3002<\/li>\n<\/ul>\n<h4>5.3 \u7f51\u7edc\u4e0e\u5e76\u53d1\u4f18\u5316<\/h4>\n<ul>\n<li>\u8c03\u6574 Ollama \u5e76\u53d1\u6570&#xff1a;\u901a\u8fc7\u73af\u5883\u53d8\u91cf OLLAMA_NUM_PARALLEL \u63a7\u5236\u5355\u4e2a Ollama \u5b9e\u4f8b\u7684\u5e76\u884c\u8bf7\u6c42\u6570\u3002\u6839\u636e GPU \u5185\u5b58\u548c\u7b97\u529b\u8c03\u6574&#xff0c;\u4f8b\u5982\u8bbe\u7f6e\u4e3a 2-4\u3002<\/li>\n<li>Linux \u5185\u6838\u53c2\u6570\u8c03\u4f18&#xff1a;\u8c03\u6574\u7cfb\u7edf\u7f51\u7edc\u53c2\u6570\u4ee5\u652f\u6301\u9ad8\u5e76\u53d1\u3002<\/li>\n<\/ul>\n<p># \u7f16\u8f91 \/etc\/sysctl.conf&#xff0c;\u589e\u52a0\u6216\u4fee\u6539\u4ee5\u4e0b\u884c<br \/>\nnet.core.somaxconn &#061; 65535<br \/>\nnet.ipv4.tcp_max_syn_backlog &#061; 65535<br \/>\nnet.core.netdev_max_backlog &#061; 65535<br \/>\nnet.ipv4.ip_local_port_range &#061; 1024 65535<br \/>\n\u4f7f\u914d\u7f6e\u751f\u6548<br \/>\nsudo sysctl -p<\/p>\n<ul>\n<li>\u9650\u5236\u6a21\u578b\u4e0a\u4e0b\u6587\u957f\u5ea6&#xff1a;\u5bf9\u4e8e\u804a\u5929\u5e94\u7528&#xff0c;\u53ef\u901a\u8fc7 Ollama \u7684 Modelfile \u6216 API \u53c2\u6570\u9650\u5236 num_ctx&#xff08;\u4e0a\u4e0b\u6587\u957f\u5ea6&#xff09;&#xff0c;\u51cf\u5c11\u5355\u6b21\u8bf7\u6c42\u8d44\u6e90\u6d88\u8017\u3002<\/li>\n<\/ul>\n<h4>5.4 \u914d\u7f6e\u4f18\u5316\u793a\u4f8b<\/h4>\n<p>\u521b\u5efa\u81ea\u5b9a\u4e49\u7684 Ollama \u7cfb\u7edf\u670d\u52a1\u914d\u7f6e\u6587\u4ef6&#xff0c;\u96c6\u6210\u4f18\u5316\u53c2\u6570&#xff1a;<\/p>\n<p># \/etc\/systemd\/system\/ollama-optimized.service<br \/>\n[Unit]<br \/>\nDescription&#061;Ollama Optimized Service<br \/>\nAfter&#061;network.target docker.service<br \/>\nRequires&#061;docker.service<br \/>\n[Service]<br \/>\nType&#061;exec<br \/>\nEnvironment&#061;&#034;OLLAMA_HOST&#061;0.0.0.0&#034;<br \/>\nEnvironment&#061;&#034;OLLAMA_NUM_PARALLEL&#061;4&#034;<br \/>\nExecStart&#061;\/usr\/bin\/ollama serve<br \/>\nRestart&#061;always<br \/>\nRestartSec&#061;3<br \/>\n\u9650\u5236\u8d44\u6e90&#xff08;\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8c03\u6574&#xff09;<br \/>\nCPUQuota&#061;400%<br \/>\nMemoryHigh&#061;32G<br \/>\nMemoryMax&#061;36G<br \/>\n[Install]<br \/>\nWantedBy&#061;multi-user.target<\/p>\n<p>\u91cd\u542f\u670d\u52a1&#xff1a;sudo systemctl daemon-reload &amp;&amp; sudo systemctl restart ollama-optimized<\/p>\n<h3>6. \u76d1\u63a7\u3001\u65e5\u5fd7\u4e0e\u8fd0\u7ef4<\/h3>\n<h4>6.1 \u76d1\u63a7\u6307\u6807<\/h4>\n<ul>\n<li>\u8282\u70b9\u76d1\u63a7&#xff1a;\u4f7f\u7528 Prometheus &#043; Grafana \u76d1\u63a7\u5404\u8282\u70b9 CPU\u3001\u5185\u5b58\u3001GPU \u5229\u7528\u7387\u3001\u663e\u5b58\u3001\u7f51\u7edc IO\u3001\u78c1\u76d8 IO\u3002<\/li>\n<li>Ollama \u5e94\u7528\u76d1\u63a7&#xff1a;\u901a\u8fc7 Ollama \u7684 API \u7aef\u70b9 \/api\/tags\u3001\/api\/ps \u83b7\u53d6\u6a21\u578b\u5217\u8868\u548c\u8fd0\u884c\u72b6\u6001&#xff0c;\u6216\u4f7f\u7528 ollama list\u3001ollama ps \u547d\u4ee4\u3002<\/li>\n<li>\u4e1a\u52a1\u76d1\u63a7&#xff1a;\u5728\u8d1f\u8f7d\u5747\u8861\u5668&#xff08;Nginx&#xff09;\u65e5\u5fd7\u4e2d\u5206\u6790\u8bf7\u6c42\u91cf\u3001\u54cd\u5e94\u65f6\u95f4\u3001\u9519\u8bef\u7387\u3002<\/li>\n<\/ul>\n<h4>6.2 \u65e5\u5fd7\u6536\u96c6<\/h4>\n<p>\u914d\u7f6e\u7edf\u4e00\u7684\u65e5\u5fd7\u6536\u96c6&#xff08;\u5982 ELK Stack \u6216 Loki&#xff09;&#xff0c;\u96c6\u4e2d\u67e5\u770b\u6240\u6709 Ollama \u8282\u70b9\u548c Nginx \u7684\u65e5\u5fd7&#xff0c;\u4fbf\u4e8e\u6545\u969c\u6392\u67e5\u3002<\/p>\n<h4>6.3 \u81ea\u52a8\u5316\u8fd0\u7ef4<\/h4>\n<ul>\n<li>\u6a21\u578b\u66f4\u65b0&#xff1a;\u7f16\u5199\u811a\u672c\u5b9a\u671f\u68c0\u67e5\u5e76\u62c9\u53d6\u6a21\u578b\u66f4\u65b0&#xff0c;\u901a\u8fc7\u5171\u4eab\u5b58\u50a8\u540c\u6b65\u5230\u6240\u6709\u8282\u70b9\u3002<\/li>\n<li>\u5065\u5eb7\u68c0\u67e5\u4e0e\u81ea\u6108&#xff1a;\u7f16\u5199\u76d1\u63a7\u811a\u672c&#xff0c;\u5f53\u8282\u70b9\u670d\u52a1\u5f02\u5e38\u65f6\u81ea\u52a8\u91cd\u542f\u6216\u544a\u8b66\u3002<\/li>\n<\/ul>\n<h3>7. \u5b89\u5168\u4e0e\u8bbf\u95ee\u63a7\u5236<\/h3>\n<ul>\n<li>\u7f51\u7edc\u9694\u79bb&#xff1a;\u5c06 Ollama \u96c6\u7fa4\u90e8\u7f72\u5728\u5185\u7f51&#xff0c;\u901a\u8fc7\u8d1f\u8f7d\u5747\u8861\u5668\u5bf9\u5916\u66b4\u9732&#xff0c;\u5e76\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219\u3002<\/li>\n<li>API \u5bc6\u94a5\u8ba4\u8bc1&#xff1a;Ollama \u672c\u8eab\u65e0\u5185\u7f6e\u5f3a\u8ba4\u8bc1\u3002\u53ef\u5728 Nginx \u5c42\u914d\u7f6e HTTP Basic Auth&#xff0c;\u6216\u901a\u8fc7\u524d\u7f6e\u7684 API \u7f51\u5173&#xff08;\u5982 Kong, Tyk&#xff09;\u5b9e\u73b0 JWT \u4ee4\u724c\u8ba4\u8bc1\u3002<\/li>\n<li>\u4f20\u8f93\u52a0\u5bc6&#xff1a;\u4e3a Nginx \u914d\u7f6e SSL\/TLS \u8bc1\u4e66&#xff08;\u53ef\u4f7f\u7528 Let\u2018s Encrypt&#xff09;&#xff0c;\u542f\u7528 HTTPS\u3002<\/li>\n<\/ul>\n<h3>8. \u603b\u7ed3\u4e0e\u6269\u5c55\u5efa\u8bae<\/h3>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4&#xff0c;\u60a8\u53ef\u4ee5\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u7cfb\u7edf\u4e0a\u6784\u5efa\u4e00\u4e2a\u652f\u6491 2000 \u4eba\u5e76\u53d1\u7684 Ollama \u96c6\u7fa4\u3002\u5173\u952e\u6210\u529f\u8981\u7d20\u5728\u4e8e&#xff1a;\u5408\u7406\u7684\u96c6\u7fa4\u67b6\u6784\u3001\u5145\u5206\u7684\u786c\u4ef6\u8d44\u6e90&#xff08;GPU\u3001\u5185\u5b58\u3001\u9ad8\u901f\u5b58\u50a8&#xff09;\u3001\u6df1\u5ea6\u7684\u7cfb\u7edf\u4e0e Ollama \u53c2\u6570\u8c03\u4f18&#xff0c;\u4ee5\u53ca\u5b8c\u5584\u7684\u76d1\u63a7\u8fd0\u7ef4\u4f53\u7cfb\u3002<\/p>\n<p>\u6269\u5c55\u5efa\u8bae&#xff1a;<\/p>\n<li>\u6c34\u5e73\u6269\u5c55&#xff1a;\u968f\u7740\u7528\u6237\u91cf\u589e\u957f&#xff0c;\u53ef\u8f7b\u677e\u589e\u52a0\u8ba1\u7b97\u8282\u70b9\u5e76\u66f4\u65b0 Nginx upstream \u914d\u7f6e\u3002<\/li>\n<li>\u591a\u6a21\u578b\u652f\u6301&#xff1a;\u53ef\u5728\u96c6\u7fa4\u4e2d\u90e8\u7f72\u4e0d\u540c\u6a21\u578b&#xff0c;\u901a\u8fc7\u8def\u7531\u89c4\u5219\u5c06\u7279\u5b9a\u8bf7\u6c42\u5bfc\u5411\u4e13\u7528\u6a21\u578b\u8282\u70b9\u3002<\/li>\n<li>\u6df7\u5408\u90e8\u7f72&#xff1a;\u5c06\u5b9e\u65f6\u63a8\u7406&#xff08;\u9ad8\u9891\u3001\u4f4e\u5ef6\u8fdf&#xff09;\u4e0e\u6279\u91cf\u63a8\u7406&#xff08;\u4f4e\u9891\u3001\u9ad8\u541e\u5410&#xff09;\u4efb\u52a1\u5206\u914d\u5230\u4e0d\u540c\u7684\u8282\u70b9\u7ec4\u3002<\/li>\n<p>\u5f00\u59cb\u60a8\u7684\u4f01\u4e1a\u7ea7 AI \u57fa\u7840\u8bbe\u65bd\u4e4b\u65c5\u5427&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6458\u8981\u672c\u6587\u8be6\u7ec6\u6307\u5bfc\u5982\u4f55\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u7cfb\u7edf\u4e0a&#xff0c;\u4ece\u96f6\u90e8\u7f72 Ollama \u670d\u52a1&#xff0c;\u5e76\u6784\u5efa\u4e00\u4e2a\u9ad8\u53ef\u7528\u3001\u9ad8\u6027\u80fd\u7684\u96c6\u7fa4\u4ee5\u652f\u6491 2000 \u4eba\u89c4\u6a21\u7684\u5e76\u53d1\u4f7f\u7528\u3002\u5185\u5bb9\u6db5\u76d6\u7cfb\u7edf\u51c6\u5907\u3001Ollama \u5b89\u88c5\u3001\u96c6\u7fa4\u67b6\u6784\u8bbe\u8ba1\u3001\u8d1f\u8f7d\u5747\u8861\u914d\u7f6e\u3001\u6a21\u578b\u7ba1\u7406\u4e0e\u5206\u53d1\u3001\u6027\u80fd\u8c03\u4f18&#xff08;\u5305\u62ec GPU \u52a0\u901f\u3001\u5185\u5b58\u4f18\u5316\u3001\u7f51\u7edc\u4e0e\u5b58\u50a8\u4f18\u5316&#xff09;\u4ee5\u53ca\u76d1\u63a7\u8fd0\u7ef4\u65b9\u6848&#xff0c;\u65e8\u5728\u4e3a\u4f01\u4e1a\u7ea7 AI \u5e94\u7528\u63d0\u4f9b\u7a33\u5b9a\u3001\u9ad8\u6548\u7684\u57fa\u7840\u8bbe\u65bd\u30021. \u7cfb\u7edf\u73af\u5883\u51c6\u5907\u4e0e\u6700\u5c0f\u5316\u5b89\u88c5Ubunt<\/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":[9099,66,58,126,103,44],"topic":[],"class_list":["post-86540","post","type-post","status-publish","format-standard","hentry","category-server","tag-9099","tag-ai","tag-linux","tag-ollama","tag-ubuntu","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u4e0a\u90e8\u7f72\u4e0e\u8c03\u4f18 Ollama \u96c6\u7fa4 - \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\/86540.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u4e0a\u90e8\u7f72\u4e0e\u8c03\u4f18 Ollama \u96c6\u7fa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6458\u8981\u672c\u6587\u8be6\u7ec6\u6307\u5bfc\u5982\u4f55\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u7cfb\u7edf\u4e0a&#xff0c;\u4ece\u96f6\u90e8\u7f72 Ollama \u670d\u52a1&#xff0c;\u5e76\u6784\u5efa\u4e00\u4e2a\u9ad8\u53ef\u7528\u3001\u9ad8\u6027\u80fd\u7684\u96c6\u7fa4\u4ee5\u652f\u6491 2000 \u4eba\u89c4\u6a21\u7684\u5e76\u53d1\u4f7f\u7528\u3002\u5185\u5bb9\u6db5\u76d6\u7cfb\u7edf\u51c6\u5907\u3001Ollama \u5b89\u88c5\u3001\u96c6\u7fa4\u67b6\u6784\u8bbe\u8ba1\u3001\u8d1f\u8f7d\u5747\u8861\u914d\u7f6e\u3001\u6a21\u578b\u7ba1\u7406\u4e0e\u5206\u53d1\u3001\u6027\u80fd\u8c03\u4f18&#xff08;\u5305\u62ec GPU \u52a0\u901f\u3001\u5185\u5b58\u4f18\u5316\u3001\u7f51\u7edc\u4e0e\u5b58\u50a8\u4f18\u5316&#xff09;\u4ee5\u53ca\u76d1\u63a7\u8fd0\u7ef4\u65b9\u6848&#xff0c;\u65e8\u5728\u4e3a\u4f01\u4e1a\u7ea7 AI \u5e94\u7528\u63d0\u4f9b\u7a33\u5b9a\u3001\u9ad8\u6548\u7684\u57fa\u7840\u8bbe\u65bd\u30021. \u7cfb\u7edf\u73af\u5883\u51c6\u5907\u4e0e\u6700\u5c0f\u5316\u5b89\u88c5Ubunt\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/86540.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-28T13:33:39+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=\"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\/86540.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/86540.html\",\"name\":\"\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u4e0a\u90e8\u7f72\u4e0e\u8c03\u4f18 Ollama \u96c6\u7fa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-28T13:33:39+00:00\",\"dateModified\":\"2026-07-28T13:33:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/86540.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/86540.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86540.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u4e0a\u90e8\u7f72\u4e0e\u8c03\u4f18 Ollama \u96c6\u7fa4\"}]},{\"@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":"\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u4e0a\u90e8\u7f72\u4e0e\u8c03\u4f18 Ollama \u96c6\u7fa4 - \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\/86540.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u4e0a\u90e8\u7f72\u4e0e\u8c03\u4f18 Ollama \u96c6\u7fa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6458\u8981\u672c\u6587\u8be6\u7ec6\u6307\u5bfc\u5982\u4f55\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u7cfb\u7edf\u4e0a&#xff0c;\u4ece\u96f6\u90e8\u7f72 Ollama \u670d\u52a1&#xff0c;\u5e76\u6784\u5efa\u4e00\u4e2a\u9ad8\u53ef\u7528\u3001\u9ad8\u6027\u80fd\u7684\u96c6\u7fa4\u4ee5\u652f\u6491 2000 \u4eba\u89c4\u6a21\u7684\u5e76\u53d1\u4f7f\u7528\u3002\u5185\u5bb9\u6db5\u76d6\u7cfb\u7edf\u51c6\u5907\u3001Ollama \u5b89\u88c5\u3001\u96c6\u7fa4\u67b6\u6784\u8bbe\u8ba1\u3001\u8d1f\u8f7d\u5747\u8861\u914d\u7f6e\u3001\u6a21\u578b\u7ba1\u7406\u4e0e\u5206\u53d1\u3001\u6027\u80fd\u8c03\u4f18&#xff08;\u5305\u62ec GPU \u52a0\u901f\u3001\u5185\u5b58\u4f18\u5316\u3001\u7f51\u7edc\u4e0e\u5b58\u50a8\u4f18\u5316&#xff09;\u4ee5\u53ca\u76d1\u63a7\u8fd0\u7ef4\u65b9\u6848&#xff0c;\u65e8\u5728\u4e3a\u4f01\u4e1a\u7ea7 AI \u5e94\u7528\u63d0\u4f9b\u7a33\u5b9a\u3001\u9ad8\u6548\u7684\u57fa\u7840\u8bbe\u65bd\u30021. \u7cfb\u7edf\u73af\u5883\u51c6\u5907\u4e0e\u6700\u5c0f\u5316\u5b89\u88c5Ubunt","og_url":"https:\/\/www.wsisp.com\/helps\/86540.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-28T13:33:39+00:00","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\/86540.html","url":"https:\/\/www.wsisp.com\/helps\/86540.html","name":"\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u4e0a\u90e8\u7f72\u4e0e\u8c03\u4f18 Ollama \u96c6\u7fa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-28T13:33:39+00:00","dateModified":"2026-07-28T13:33:39+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/86540.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/86540.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/86540.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728 Ubuntu 22.04 \u6700\u5c0f\u5316\u5b89\u88c5\u4e0a\u90e8\u7f72\u4e0e\u8c03\u4f18 Ollama \u96c6\u7fa4"}]},{"@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\/86540","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=86540"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86540\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=86540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=86540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=86540"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=86540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}