{"id":41449,"date":"2025-06-02T18:16:10","date_gmt":"2025-06-02T10:16:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/41449.html"},"modified":"2025-06-02T18:16:10","modified_gmt":"2025-06-02T10:16:10","slug":"%e9%ab%98%e6%80%a7%e8%83%bd%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%85%8d%e7%bd%ae%e7%bb%8f%e9%aa%8c%e6%8c%87%e5%8d%973-%e5%ae%89%e8%a3%85%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%8f%af%e8%83%bd%e9%81%87","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/41449.html","title":{"rendered":"\u9ad8\u6027\u80fd\u670d\u52a1\u5668\u914d\u7f6e\u7ecf\u9a8c\u6307\u53573\u2014\u2014\u5b89\u88c5\u670d\u52a1\u5668\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>1\u3001\u91cd\u88c5\u7cfb\u7edf\u540eVScode\u8fdc\u7a0b\u8fde\u63a5\u5931\u8d25\u95ee\u9898<\/li>\n<li>2\u3001XRDP\u8fde\u63a5\u9ed1\u5c4f\u95ee\u9898<\/li>\n<li>\n<ul>\n<li>1. \u6253\u5f00\u6587\u4ef6<\/li>\n<li>2. \u6dfb\u52a0\u914d\u7f6e<\/li>\n<li>3. \u91cd\u542fxrdp\u670d\u52a1<\/li>\n<\/ul>\n<\/li>\n<li>3\u3001VScode\u8fdc\u7a0b\u514d\u5bc6\u8fde\u63a5\u95ee\u9898<\/li>\n<li>4\u3001Vim\u7f16\u8f91\u6587\u4ef6\u65f6\u51fa\u73b0\u4e0d\u540c\u7528\u6237\u51b2\u7a81\u7f16\u8f91\u7684\u95ee\u9898<\/li>\n<li>5\u3001\u670d\u52a1\u5668\u8fde\u63a5\u6709\u7ebf\u7f51\u65f6\u51fa\u73b0\u65e0\u6cd5\u8bc6\u522b\u7684\u95ee\u9898<\/li>\n<li>6\u3001\u4ee3\u7801\u8bc6\u522b\u4e0d\u5230cuda<\/li>\n<li>7\u3001\u8fdb\u7a0b\u67e5\u770b\u4e0e\u6740\u6b7b<\/li>\n<\/ul>\n<p> \u5728\u5b8c\u6210<br \/>\n\u670d\u52a1\u5668\u57fa\u672c\u914d\u7f6e\u548c<br \/>\n\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u51c6\u5907\u540e&#xff0c;\u5927\u5bb6\u5e94\u8be5\u5c31\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u670d\u52a1\u5668\u4e86&#xff0c;\u63a8\u8350\u4f7f\u7528VScode\u8fdc\u7a0b\u8fde\u63a5\u4f7f\u7528&#xff0c;\u6bd4\u8f83\u7a33\u5b9a\u65b9\u4fbf&#xff0c;Pycharm\u4e0d\u597d\u7528&#xff0c;VScode\u8fdc\u7a0b\u8fde\u63a5\u65b9\u6cd5\u7f51\u4e0a\u6709\u5f88\u591a&#xff0c;\u8fd9\u91cc\u63a8\u8350\u4e00\u7bc7&#xff1a;<br \/>\nhttps:\/\/blog.csdn.net\/qq_64634610\/article\/details\/146102837?ops_request_misc&#061;%257B%2522request%255Fid%2522%253A%2522b54799962faa5aee9ad20c1e4f2eb0f1%2522%252C%2522scm%2522%253A%252220140713.130102334\u2026%2522%257D&amp;request_id&#061;b54799962faa5aee9ad20c1e4f2eb0f1&amp;biz_id&#061;0&amp;utm_medium&#061;distribute.pc_search_result.none-task-blog-2<sub>all<\/sub>top_click~default-2-146102837-null-null.142<sup>v102<\/sup>pc_search_result_base6&amp;utm_term&#061;vscode%E8%BF%9C%E7%A8%8B%E8%BF%9E%E6%8E%A5linux%E6%AD%A5%E9%AA%A4&amp;spm&#061;1018.2226.3001.4187 <\/p>\n<p>\u672c\u6587\u7684\u4e3b\u8981\u76ee\u7684\u662f\u8bb0\u5f55\u7b14\u8005\u9047\u5230\u7684\u4e00\u4e9b\u5c0f\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6cd5&#xff0c;\u4ee5\u540e\u5c3d\u91cf\u6301\u7eed\u66f4\u65b0\u9047\u5230\u7684\u95ee\u9898\u3002<\/p>\n<h2>1\u3001\u91cd\u88c5\u7cfb\u7edf\u540eVScode\u8fdc\u7a0b\u8fde\u63a5\u5931\u8d25\u95ee\u9898<\/h2>\n<p>\u91cd\u88c5\u7cfb\u7edf\u540e\u53ef\u80fdSSH\u8fde\u63a5\u4f1a\u51fa\u73b0\u7c7b\u4f3c\u8fd9\u6837\u7684\u95ee\u9898&#xff1a;<\/p>\n<p>&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;<br \/>\n&#064;    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     &#064;<br \/>\n&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;&#064;<br \/>\nIT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!<br \/>\nSomeone could be eavesdropping on you right now <span class=\"token punctuation\">(<\/span>man-in-the-middle attack<span class=\"token punctuation\">)<\/span><span class=\"token operator\">!<\/span><br \/>\nIt is also possible that the RSA host key has just been changed<span class=\"token punctuation\">.<\/span><br \/>\nThe fingerprint <span class=\"token keyword\">for<\/span> the RSA key sent by the remote host is<br \/>\n50:e6:cb:58:bc:b7:a3:f6:e8:8f:46:a7:c1:5f:c2:df<span class=\"token punctuation\">.<\/span><br \/>\nPlease contact your system administrator<span class=\"token punctuation\">.<\/span><br \/>\nAdd correct host key in <span class=\"token operator\">\/<\/span>home\/cobyeah\/<span class=\"token punctuation\">.<\/span>ssh\/known_hosts to get rid of this message<span class=\"token punctuation\">.<\/span><br \/>\nOffending key in <span class=\"token operator\">\/<\/span>home\/cobyeah\/<span class=\"token punctuation\">.<\/span>ssh\/known_hosts:7<br \/>\nRSA host key <span class=\"token keyword\">for<\/span> 192<span class=\"token punctuation\">.<\/span>168<span class=\"token punctuation\">.<\/span>0<span class=\"token punctuation\">.<\/span>4 has changed and you have requested strict checking<span class=\"token punctuation\">.<\/span><br \/>\nHost key verification failed<span class=\"token punctuation\">.<\/span><\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5&#xff1a;\u76f4\u63a5\u627e\u5230\u81ea\u5df1\u7535\u8111\u4e0a&#034;C:\\\\Users\\\\username\\\\.ssh&#034;\u6587\u4ef6\u5939&#xff0c;\u628a\u91cc\u9762\u7684\u4e1c\u897f\u5168\u5220\u4e86\u518d\u91cd\u8fde\u5c31\u53ef\u4ee5\u8fde\u4e0a\u3002<\/p>\n<h2>2\u3001XRDP\u8fde\u63a5\u9ed1\u5c4f\u95ee\u9898<\/h2>\n<p>\u6211\u4e00\u822c\u4f7f\u7528xrdp\u8fde\u63a5linux\u7684\u8fdc\u7a0b\u684c\u9762&#xff0c;\u4f46\u6709\u65f6\u521a\u5b89\u88c5\u597d\u65f6&#xff0c;\u8fde\u63a5\u603b\u662f\u9ed1\u5c4f&#xff0c;\u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b&#xff1a;<\/p>\n<h3>1. \u6253\u5f00\u6587\u4ef6<\/h3>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vim<\/span> \/etc\/xrdp\/startwm.sh<\/p>\n<h3>2. \u6dfb\u52a0\u914d\u7f6e<\/h3>\n<p><span class=\"token builtin class-name\">unset<\/span> <span class=\"token environment constant\">DBUS_SESSION_BUS_ADDRESS<\/span><br \/>\n<span class=\"token builtin class-name\">unset<\/span> <span class=\"token environment constant\">XDG_RUNTIME_DIR<\/span><\/p>\n<h3>3. \u91cd\u542fxrdp\u670d\u52a1<\/h3>\n<p><span class=\"token function\">sudo<\/span> systemctl restart xrdp.service<\/p>\n<h2>3\u3001VScode\u8fdc\u7a0b\u514d\u5bc6\u8fde\u63a5\u95ee\u9898<\/h2>\n<p>\u5728\u4f7f\u7528VScode\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\u65f6&#xff0c;\u6bcf\u6b21\u91cd\u65b0\u8fde\u63a5\u90fd\u8981\u8f93\u5bc6\u7801&#xff0c;\u5982\u679c\u662f\u4e3a\u4e86\u5b89\u5168\u5bc6\u7801\u8bbe\u7684\u5f88\u590d\u6742&#xff0c;\u6bcf\u6b21\u8f93\u5bc6\u7801\u5c31\u663e\u5f97\u8fc7\u4e8e\u7e41\u7410&#xff0c;\u6240\u4ee5\u53ef\u4ee5\u8003\u8651\u901a\u8fc7\u516c\u94a5\/\u5bc6\u94a5\u5bf9\u8fdb\u884c\u8fde\u63a5&#xff0c;\u8fd9\u6837\u4e0d\u4ec5\u66f4\u65b9\u4fbf&#xff0c;\u76f8\u6bd4\u4e8e\u5bc6\u7801\u8fde\u63a5\u4e5f\u66f4\u5b89\u5168&#xff0c;\u9664\u975e\u4e24\u53f0\u8bbe\u5907\u7684\u5bc6\u94a5\u540c\u65f6\u6cc4\u9732&#xff0c;\u5426\u5219\u8fd9\u79cd\u8fde\u63a5\u5f88\u96be\u88ab\u653b\u7834\u3002 \u9996\u5148\u6253\u5f00\u7ec8\u7aef&#xff0c;\u8f93\u5165&#xff1a;<\/p>\n<p>sudo vim <span class=\"token operator\">\/<\/span>etc\/ssh\/sshd_config<\/p>\n<p>\u6253\u5f00ssh\u7684\u914d\u7f6e\u6587\u4ef6\u540e&#xff0c;\u627e\u5230PasswordAuthentication&#xff0c;\u786e\u4fdd\u5b83\u7684\u503c\u4e3ayes&#xff0c;\u6253\u5f00\u670d\u52a1\u5668\u7684ssh\u5bc6\u7801\u767b\u5f55\u6743\u9650&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101606-683d79e6aede7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7136\u540e\u91cd\u542fssh\u670d\u52a1&#xff1a;<\/p>\n<p>sudo service sshd restart<\/p>\n<p>\u5982\u679c\u516c\u94a5\u8fde\u63a5\u4e2d\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\u63d0\u793a&#xff1a;Permission denied (publickey).\u53ef\u80fd\u5c31\u662fssh\u5bc6\u7801\u767b\u9646\u6743\u9650\u6ca1\u6709\u6253\u5f00&#xff0c;\u53ef\u4ee5\u56de\u6765\u6392\u67e5\u4e0b\u3002 \u6253\u5f00windows\u4e2d\u7684\u7ec8\u7aef&#xff0c;\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101606-683d79e6b970e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u8f93\u5165\u547d\u4ee4&#xff1a;ssh-keygen -t rsa\u751f\u6210\u5bc6\u94a5\u6587\u4ef6&#xff0c;\u53ef\u4ee5\u7ed9\u79c1\u94a5\u8bbe\u7f6e\u5bc6\u7801&#xff0c;\u4e5f\u53ef\u4ee5\u76f4\u63a5\u56de\u8f66\u514d\u5bc6&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101607-683d79e720939.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5728C:\\\\Users&#034;\u7528\u6237\u540d&#034;.ssh\u6587\u4ef6\u5939\u4e0b&#xff0c;\u4f1a\u751f\u6210\u5982\u4e0b\u914d\u7f6e\u6587\u4ef6&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101607-683d79e731ff5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7ea2\u6846\u6846\u51fa\u7684\u5c31\u662f\u5bc6\u94a5\u6587\u4ef6&#xff0c;\u5176\u4ed6\u4e09\u4e2a\u662fVScode\u8fdc\u7a0b\u8fde\u63a5\u6210\u529f\u540e\u751f\u6210\u7684\u914d\u7f6e\u6587\u4ef6&#xff0c;\u4e3b\u8981\u8bb0\u5f55\u670d\u52a1\u5668ip\u3001\u7528\u6237\u540d\u7b49\u4fe1\u606f\u3002 \u8fd9\u91cc\u7684id_rsa.pub\u662f\u516c\u94a5&#xff0c;\u5728\u670d\u52a1\u5668\u7aef\u4f7f\u7528&#xff0c;id_rsa\u662f\u79c1\u94a5&#xff0c;\u5728\u7528\u6237\u7aef\u4f7f\u7528\u3002 \u628aid_rsa.pub\u62f7\u8d1d\u5728\u670d\u52a1\u5668\u7684\u4efb\u610f\u8def\u5f84\u4e0b&#xff0c;\u8bb0\u4f4f\u8fd9\u4e2a\u8def\u5f84\u3002 \u5728\u670d\u52a1\u5668\u8def\u5f84\u4e0b\u521b\u5efa.ssh\u6587\u4ef6\u5939&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u76ee\u5f55<\/span><br \/>\nmkdir ~<span class=\"token operator\">\/<\/span><span class=\"token punctuation\">.<\/span>ssh<br \/>\n<span class=\"token comment\"># \u8fdb\u5165.ssh\u76ee\u5f55<\/span><br \/>\ncd ~<span class=\"token operator\">\/<\/span><span class=\"token punctuation\">.<\/span>ssh<br \/>\n<span class=\"token comment\"># \u521b\u5efa\u516c\u94a5\u5b58\u50a8\u6587\u4ef6<\/span><br \/>\ntouch authorized_keys<\/p>\n<p>\u8fdb\u5165\u7ec8\u7aef&#xff0c;\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">echo<\/span> <span class=\"token string\">&#034;xxxx&#034;<\/span> &gt;&gt; ~<span class=\"token operator\">\/<\/span><span class=\"token punctuation\">.<\/span>ssh\/authorized_keys<\/p>\n<p>\u5176\u4e2d&#xff0c;xxxx\u5c31\u662fid_rsa.pub\u7684\u8def\u5f84\u3002 \u6253\u5f00VScode&#xff0c;\u4f7f\u7528Ctrl &#043; Shift &#043; P&#xff0c;\u6253\u5f00\u547d\u4ee4\u7a97\u53e3&#xff0c;\u8f93\u5165\u91cd\u542f\u7a97\u53e3\u547d\u4ee4reload window&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101607-683d79e740f39.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u56de\u8f66\u540e&#xff0c;\u6ca1\u6709\u63d0\u793a\u8f93\u5165\u5bc6\u7801\u7684\u7a97\u53e3&#xff0c;\u5373\u4ee3\u8868\u514d\u5bc6\u6210\u529f\u3002<\/p>\n<h2>4\u3001Vim\u7f16\u8f91\u6587\u4ef6\u65f6\u51fa\u73b0\u4e0d\u540c\u7528\u6237\u51b2\u7a81\u7f16\u8f91\u7684\u95ee\u9898<\/h2>\n<p>\u5728\u7528Vim\u7f16\u8f91\u6587\u4ef6\u65f6&#xff0c;\u6709\u65f6\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\u63d0\u793a\u4fe1\u606f&#xff1a;<\/p>\n<p>E325: \u6ce8\u610f<br \/>\n\u53d1\u73b0\u4ea4\u6362\u6587\u4ef6 <span class=\"token string\">&#034;\/etc\/ssh\/.sshd_config.swp&#034;<\/span><br \/>\n            \u6240\u6709\u8005: root    \u65e5\u671f: 2025-04-22 17:41:00<\/p>\n<p>\u8fd9\u4e2a\u6d88\u606f\u662f\u7531Vi\u6216Vim\u7f16\u8f91\u5668\u4ea7\u751f\u7684&#xff0c;\u63d0\u793a\u4f60\u5f53\u524d\u6b63\u5728\u5c1d\u8bd5\u7f16\u8f91\u7684\u6587\u4ef6&#xff08;\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\u662f\/etc\/ssh\/sshd_config&#xff09;\u6709\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u4ea4\u6362\u6587\u4ef6&#xff08;.swp\u6587\u4ef6&#xff09;\u3002\u4ea4\u6362\u6587\u4ef6\u662fVim\u5728\u7f16\u8f91\u8fc7\u7a0b\u4e2d\u81ea\u52a8\u521b\u5efa\u7684\u4e34\u65f6\u6587\u4ef6&#xff0c;\u7528\u4e8e\u6062\u590d\u672a\u4fdd\u5b58\u7684\u66f4\u6539\u548c\u9632\u6b62\u6570\u636e\u4e22\u5931\u3002\u5f53\u7f16\u8f91\u4f1a\u8bdd\u975e\u6b63\u5e38\u7ec8\u6b62\u65f6&#xff08;\u6bd4\u5982\u7cfb\u7edf\u5d29\u6e83\u6216\u8005Vim\u88ab\u5f3a\u5236\u5173\u95ed&#xff09;&#xff0c;\u8fd9\u4e9b\u4ea4\u6362\u6587\u4ef6\u53ef\u80fd\u4e0d\u4f1a\u88ab\u81ea\u52a8\u5220\u9664\u3002 \u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b&#xff0c;\u60f3\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u5982\u679c\u4f60\u786e\u5b9a\u4e4b\u524d\u6ca1\u6709\u672a\u4fdd\u5b58\u7684\u5de5\u4f5c&#xff0c;\u6216\u8005\u4f60\u4e0d\u5173\u5fc3\u4e22\u5931\u90a3\u4e9b\u6f5c\u5728\u7684\u672a\u4fdd\u5b58\u66f4\u6539&#xff0c;\u4f60\u53ef\u4ee5\u9009\u62e9\u5220\u9664\u4ea4\u6362\u6587\u4ef6&#xff1a;<\/p>\n<p>sudo <span class=\"token function\">rm<\/span> <span class=\"token operator\">\/<\/span>etc\/ssh\/<span class=\"token punctuation\">.<\/span>sshd_config<span class=\"token punctuation\">.<\/span>swp<\/p>\n<p>\u7136\u540e\u91cd\u65b0\u6253\u5f00\u6587\u4ef6\u8fdb\u884c\u7f16\u8f91\u5373\u53ef\u3002 \u5982\u679c\u5b58\u5728\u672a\u4fdd\u5b58\u7684\u66f4\u6539&#xff0c; \u5e94\u8be5\u9009\u62e9\u6062\u590d\u90a3\u4e2a\u4ea4\u6362\u6587\u4ef6\u3002 \u5f53\u51fa\u73b0\u4e0a\u8ff0E325\u9519\u8bef\u4fe1\u606f\u65f6&#xff0c;Vim\u901a\u5e38\u4f1a\u63d0\u4f9b\u51e0\u4e2a\u9009\u9879\u4f9b\u4f60\u9009\u62e9&#xff0c;\u5305\u62ec\u6062\u590d\u3001\u5220\u9664\u4ea4\u6362\u6587\u4ef6\u7b49\u3002 \u8f93\u5165 r \u6765\u6062\u590d\u4ea4\u6362\u6587\u4ef6\u4e2d\u7684\u5185\u5bb9\u5230\u5f53\u524d\u7f16\u8f91\u7684\u6587\u4ef6\u4e2d&#xff0c;\u6216\u8005\u8f93\u5165 O \u6253\u5f00\u53ea\u8bfb\u6a21\u5f0f\u67e5\u770b\u6587\u4ef6\u800c\u4e0d\u505a\u4efb\u4f55\u4fee\u6539\u3002<\/p>\n<h2>5\u3001\u670d\u52a1\u5668\u8fde\u63a5\u6709\u7ebf\u7f51\u65f6\u51fa\u73b0\u65e0\u6cd5\u8bc6\u522b\u7684\u95ee\u9898<\/h2>\n<p>\u6709\u65f6\u670d\u52a1\u5668\u8fde\u63a5\u6709\u7ebf\u7f51\u4f7f\u7528\u65f6&#xff0c;\u867d\u7136\u663e\u793a\u6709\u7ebf\u7f51\u5df2\u8fde\u63a5&#xff0c;\u4f46\u662f\u65e0\u6cd5\u6b63\u5e38\u4e0a\u7f51&#xff0c;\u76ee\u524d\u6709\u4e24\u79cd\u89e3\u51b3\u65b9\u6cd5&#xff1a; &#xff08;1&#xff09;\u5173\u95ed\u4ee3\u7406&#xff1a;https:\/\/blog.csdn.net\/qq_33412312\/article\/details\/135460006&#xff1b; &#xff08;2&#xff09;\u91cd\u65b0\u63d2\u62d4\u7f51\u7ebf&#xff1a;\u786c\u4ef6\u7684\u95ee\u9898\u901a\u8fc7\u91cd\u542f\u53ef\u4ee5\u89e3\u51b380%&#xff0c;\u53ef\u4ee5\u5148\u8bd5\u8bd5\u63d2\u62d4\u670d\u52a1\u5668\u4e0a\u7684\u7f51\u7ebf&#xff0c;\u6ca1\u7528\u7684\u8bdd\u53ef\u4ee5\u63d2\u62d4\u4e00\u4e0b\u8def\u7531\u5668\u7684&#xff0c;\u8bf4\u4e0d\u5b9a\u6709\u60ca\u559c\u3002<\/p>\n<h2>6\u3001\u4ee3\u7801\u8bc6\u522b\u4e0d\u5230cuda<\/h2>\n<p>\u5728\u8fd0\u884c\u6df1\u5ea6\u5b66\u4e60\u4ee3\u7801\u65f6&#xff0c;\u6709\u65f6\u5982\u679c\u8fd0\u884c\u65f6\u95f4\u8fc7\u957f&#xff0c;\u53ef\u80fd\u4f1a\u51fa\u73b0\u670d\u52a1\u5668\u6b7b\u673a\u7684\u95ee\u9898&#xff0c;\u6b64\u65f6&#xff0c;\u91cd\u542f\u4e4b\u540e\u91cd\u65b0\u8fd0\u884c\u4ee3\u7801&#xff0c;\u53ef\u80fd\u4f1a\u51fa\u73b0\u4ee3\u7801\u8bc6\u522b\u4e0d\u5230cuda\u7684\u95ee\u9898&#xff0c;\u62a5\u9519\u4fe1\u606f\u7c7b\u4f3c&#xff1a;<\/p>\n<p>ValueError<span class=\"token punctuation\">:<\/span> Invalid CUDA <span class=\"token string\">&#039;device&#061;1&#039;<\/span> requested<span class=\"token punctuation\">.<\/span> Use <span class=\"token string\">&#039;device&#061;cpu&#039;<\/span> <span class=\"token keyword\">or<\/span> <span class=\"token keyword\">pass<\/span> valid CUDA device<span class=\"token punctuation\">(<\/span>s<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">if<\/span> available<span class=\"token punctuation\">,<\/span> i<span class=\"token punctuation\">.<\/span>e<span class=\"token punctuation\">.<\/span> <span class=\"token string\">&#039;device&#061;0&#039;<\/span> <span class=\"token keyword\">or<\/span> <span class=\"token string\">&#039;device&#061;0,1,2,3&#039;<\/span> <span class=\"token keyword\">for<\/span> Multi<span class=\"token operator\">&#8211;<\/span>GPU<span class=\"token punctuation\">.<\/span><\/p>\n<p>torch<span class=\"token punctuation\">.<\/span>cuda<span class=\"token punctuation\">.<\/span>is_available<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean\">False<\/span><br \/>\ntorch<span class=\"token punctuation\">.<\/span>cuda<span class=\"token punctuation\">.<\/span>device_count<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">0<\/span><br \/>\nos<span class=\"token punctuation\">.<\/span>environ<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;CUDA_VISIBLE_DEVICES&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean\">None<\/span><br \/>\nSee https<span class=\"token punctuation\">:<\/span><span class=\"token operator\">\/\/<\/span>pytorch<span class=\"token punctuation\">.<\/span>org<span class=\"token operator\">\/<\/span>get<span class=\"token operator\">&#8211;<\/span>started<span class=\"token operator\">\/<\/span>locally<span class=\"token operator\">\/<\/span> <span class=\"token keyword\">for<\/span> up<span class=\"token operator\">&#8211;<\/span>to<span class=\"token operator\">&#8211;<\/span>date torch install instructions <span class=\"token keyword\">if<\/span> no CUDA devices are seen by torch<span class=\"token punctuation\">.<\/span><\/p>\n<p>\u4f8b\u5982\u4ee5\u4e0a\u7684\u62a5\u9519\u4fe1\u606f&#xff1a;<\/p>\n<ul>\n<li>torch.cuda.is_available() \u8fd4\u56de False&#xff0c;\u8fd9\u610f\u5473\u7740\u5f53\u524d\u7cfb\u7edf\u4e0a\u6ca1\u6709\u53ef\u7528\u7684CUDA\u652f\u6301&#xff0c;\u6216\u8005PyTorch\u5b89\u88c5\u7248\u672c\u4e0d\u652f\u6301CUDA\u3002<\/li>\n<li>torch.cuda.device_count() \u8fd4\u56de 0&#xff0c;\u8fd9\u8868\u793a\u7cfb\u7edf\u6ca1\u6709\u68c0\u6d4b\u5230\u4efb\u4f55CUDA\u517c\u5bb9\u7684GPU\u8bbe\u5907\u3002<\/li>\n<li>os.environ[&#039;CUDA_VISIBLE_DEVICES&#039;] \u4e3a None&#xff0c;\u610f\u5473\u7740\u6ca1\u6709\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u6765\u9650\u5236\u53ef\u89c1\u7684CUDA\u8bbe\u5907\u3002<\/li>\n<\/ul>\n<p>\u9047\u5230\u7c7b\u4f3c\u7684\u62a5\u9519&#xff0c;\u53ef\u80fd\u662f\u56e0\u4e3a\u7535\u8111\u7684\u663e\u5361\u9a71\u52a8\u6389\u4e86&#xff0c;\u4f7f\u7528\u547d\u4ee4nvidia-smi\u6d4b\u8bd5\u4e00\u4e0b&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101607-683d79e76380d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5982\u679c\u51fa\u73b0\u4e0a\u56fe\u4e2d\u6240\u793a\u60c5\u51b5&#xff0c;\u8bf4\u660e\u663e\u5361\u9a71\u52a8\u51fa\u9519\u4e86&#xff0c;\u9700\u8981\u91cd\u65b0\u5b89\u88c5&#xff0c;\u5b89\u88c5\u8fc7\u7a0b\u53c2\u8003&#xff1a; https:\/\/blog.csdn.net\/weixin_51418895\/article\/details\/147475453?spm&#061;1001.2014.3001.5501<\/p>\n<p>\u5728\u8fd9\u91cc\u653e\u4e00\u4e2aNVIDIA\u5b98\u65b9\u9a71\u52a8\u4e0b\u8f7d\u94fe\u63a5&#xff0c;\u65b9\u4fbf\u5927\u5bb6\u4e0b\u8f7d&#xff1a;https:\/\/www.nvidia.cn\/drivers\/lookup\/ \u9009\u62e9\u597d\u81ea\u5df1\u7684\u663e\u5361\u578b\u53f7\u548c\u64cd\u4f5c\u7cfb\u7edf\u540e&#xff0c;\u70b9\u51fb\u67e5\u627e&#xff0c;\u8fdb\u5165\u4e0b\u8f7d\u754c\u9762\u540e\u4e0b\u8f7d\u5f97\u5230\u9a71\u52a8\u7684\u5b89\u88c5\u6587\u4ef6&#xff0c;Linux\u4e0b\u7684\u5b89\u88c5\u6587\u4ef6\u540e\u7f00\u4e3a.run&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101607-683d79e77117a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101607-683d79e7de785.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u4e0b\u8f7d\u540e\u7684\u6587\u4ef6\u540d\u548c\u56fe\u6807\u5982\u4e0b\u56fe\u6240\u793a&#xff0c;\u4e3a\u4e86\u907f\u514d\u6bcf\u6b21\u51fa\u73b0\u7c7b\u4f3c\u95ee\u9898\u90fd\u8981\u91cd\u65b0\u4e0b\u8f7d&#xff0c;\u5efa\u8bae\u5927\u5bb6\u628a\u8fd9\u4e2a\u6587\u4ef6\u4e00\u76f4\u653e\u5728\u81ea\u5df1\u7684\u6587\u4ef6\u5939\u4e0b\u4e0d\u8981\u5220\u9664&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101608-683d79e80e482.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5728\u5b89\u88c5\u5305\u6240\u5728\u8def\u5f84\u4e0b\u8fd0\u884c\u7ec8\u7aef&#xff0c;\u8f93\u5165\u547d\u4ee4&#xff1a;<\/p>\n<p>sudo bash NVIDIA<span class=\"token operator\">&#8211;<\/span>Linux<span class=\"token operator\">&#8211;<\/span>x86_64<span class=\"token operator\">&#8211;<\/span><span class=\"token number\">570.144<\/span><span class=\"token punctuation\">.<\/span>run<\/p>\n<p>\u6ce8\u610f\u6b64\u5904\u6587\u4ef6\u540d\u6362\u6210\u81ea\u5df1\u4e0b\u8f7d\u7684\u9a71\u52a8\u7684\u6587\u4ef6\u540d&#xff01;&#xff01;<\/p>\n<p>\u5f00\u59cb\u4e0b\u8f7d&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101608-683d79e8155a9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u9009\u62e9 NVIDIA Proprietary <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101608-683d79e829734.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u9009\u62e9 Continue installation <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101608-683d79e83c411.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u9009\u62e9 Continue installation <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101608-683d79e84e18e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5b89\u88c5\u4e2d\u3002\u3002\u3002\u3002\u3002\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101608-683d79e860922.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u9009\u62e9 Yes <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101608-683d79e8747a7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5b89\u88c5\u4e2d\u3002\u3002\u3002\u3002\u3002\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101608-683d79e885d31.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u9009\u62e9 Yes \u518d\u6d4b\u8bd5\u4e0bnvidia-smi&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101608-683d79e897694.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u53ef\u4ee5\u7ee7\u7eed\u4f7f\u7528\u55bd\u3002<\/p>\n<h2>7\u3001\u8fdb\u7a0b\u67e5\u770b\u4e0e\u6740\u6b7b<\/h2>\n<p>\u5728\u591a\u4e2a\u4eba\u4f7f\u7528\u670d\u52a1\u5668\u65f6&#xff0c;\u53ef\u80fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u4f7f\u7528\u573a\u666f&#xff1a; &#xff08;1&#xff09;\u786e\u5b9a\u76ee\u524d\u670d\u52a1\u5668\u54ea\u4e2a\u663e\u5361\u5728\u88ab\u5360\u7528&#xff1b; &#xff08;2&#xff09;\u67e5\u770b\u662f\u5426\u6709\u5e94\u8be5\u505c\u6b62\u5374\u672a\u505c\u6b62\u7684\u8fdb\u7a0b\u5728\u767d\u767d\u6d88\u8017\u7b97\u529b\u8d44\u6e90&#xff1b; &#xff08;3&#xff09;\u6740\u6b7b\u4e0d\u9700\u8981\u7684\u8fdb\u7a0b\u3002 \u5bf9\u4e8e\u573a\u666f\u4e00&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4\u786e\u5b9a\u54ea\u51e0\u5f20\u663e\u5361\u5728\u88ab\u5360\u7528&#xff1a;<\/p>\n<p>nvidia-smi<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101608-683d79e8b9d03.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5bf9\u4e8e\u573a\u666f\u4e8c&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u8fdb\u7a0b\u53f7&#xff08;PID&#xff09;\u67e5\u770b\u8fd9\u4e2a\u8fdb\u7a0b\u5177\u4f53\u662f\u54ea\u4e2a\u7a0b\u5e8f\u5728\u8dd1&#xff1a;<\/p>\n<p><span class=\"token function\">ps<\/span> <span class=\"token operator\">&#8211;<\/span>fp &lt;PID&gt;<\/p>\n<p>\u8fdb\u7a0b\u53f7\u5728nvidia-smi\u547d\u4ee4\u4e2d\u53ef\u4ee5\u770b\u5230&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101609-683d79e91dfe5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5bf9\u4e8e\u573a\u666f\u4e09&#xff0c;\u5728\u786e\u5b9a\u8981\u6740\u6b7b\u54ea\u4e2a\u8fdb\u7a0b\u540e&#xff0c;\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6740\u6b7b\u5b83&#xff1a;<\/p>\n<p><span class=\"token function\">kill<\/span> <span class=\"token operator\">&#8211;<\/span>9 &lt;PID&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb810\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u5728\u5b8c\u6210\u548c\u672c\u6587\u7684\u4e3b\u8981\u76ee\u7684\u662f\u8bb0\u5f55\u7b14\u8005\u9047\u5230\u7684\u4e00\u4e9b\u5c0f\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6cd5\uff0c\u4ee5\u540e\u5c3d\u91cf\u6301\u7eed\u66f4\u65b0\u9047\u5230\u7684\u95ee\u9898\u3002<\/p>\n","protected":false},"author":2,"featured_media":41430,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44,2699],"topic":[],"class_list":["post-41449","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44","tag-2699"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u9ad8\u6027\u80fd\u670d\u52a1\u5668\u914d\u7f6e\u7ecf\u9a8c\u6307\u53573\u2014\u2014\u5b89\u88c5\u670d\u52a1\u5668\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5 - \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\/41449.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u9ad8\u6027\u80fd\u670d\u52a1\u5668\u914d\u7f6e\u7ecf\u9a8c\u6307\u53573\u2014\u2014\u5b89\u88c5\u670d\u52a1\u5668\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb810\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u5728\u5b8c\u6210\u548c\u672c\u6587\u7684\u4e3b\u8981\u76ee\u7684\u662f\u8bb0\u5f55\u7b14\u8005\u9047\u5230\u7684\u4e00\u4e9b\u5c0f\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6cd5\uff0c\u4ee5\u540e\u5c3d\u91cf\u6301\u7eed\u66f4\u65b0\u9047\u5230\u7684\u95ee\u9898\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/41449.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-02T10:16:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101606-683d79e6aede7.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\/41449.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/41449.html\",\"name\":\"\u9ad8\u6027\u80fd\u670d\u52a1\u5668\u914d\u7f6e\u7ecf\u9a8c\u6307\u53573\u2014\u2014\u5b89\u88c5\u670d\u52a1\u5668\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-02T10:16:10+00:00\",\"dateModified\":\"2025-06-02T10:16:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/41449.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/41449.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/41449.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u9ad8\u6027\u80fd\u670d\u52a1\u5668\u914d\u7f6e\u7ecf\u9a8c\u6307\u53573\u2014\u2014\u5b89\u88c5\u670d\u52a1\u5668\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5\"}]},{\"@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":"\u9ad8\u6027\u80fd\u670d\u52a1\u5668\u914d\u7f6e\u7ecf\u9a8c\u6307\u53573\u2014\u2014\u5b89\u88c5\u670d\u52a1\u5668\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5 - \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\/41449.html","og_locale":"zh_CN","og_type":"article","og_title":"\u9ad8\u6027\u80fd\u670d\u52a1\u5668\u914d\u7f6e\u7ecf\u9a8c\u6307\u53573\u2014\u2014\u5b89\u88c5\u670d\u52a1\u5668\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb810\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u5728\u5b8c\u6210\u548c\u672c\u6587\u7684\u4e3b\u8981\u76ee\u7684\u662f\u8bb0\u5f55\u7b14\u8005\u9047\u5230\u7684\u4e00\u4e9b\u5c0f\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6cd5\uff0c\u4ee5\u540e\u5c3d\u91cf\u6301\u7eed\u66f4\u65b0\u9047\u5230\u7684\u95ee\u9898\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/41449.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-02T10:16:10+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250602101606-683d79e6aede7.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\/41449.html","url":"https:\/\/www.wsisp.com\/helps\/41449.html","name":"\u9ad8\u6027\u80fd\u670d\u52a1\u5668\u914d\u7f6e\u7ecf\u9a8c\u6307\u53573\u2014\u2014\u5b89\u88c5\u670d\u52a1\u5668\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-02T10:16:10+00:00","dateModified":"2025-06-02T10:16:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/41449.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/41449.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/41449.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u9ad8\u6027\u80fd\u670d\u52a1\u5668\u914d\u7f6e\u7ecf\u9a8c\u6307\u53573\u2014\u2014\u5b89\u88c5\u670d\u52a1\u5668\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5"}]},{"@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\/41449","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=41449"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/41449\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/41430"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=41449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=41449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=41449"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=41449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}