{"id":234,"date":"2018-05-20T00:58:16","date_gmt":"2018-05-20T00:58:16","guid":{"rendered":"https:\/\/oimi.me\/?p=234"},"modified":"2018-05-20T00:58:16","modified_gmt":"2018-05-20T00:58:16","slug":"%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85kms%e6%9c%8d%e5%8a%a1%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/myya.net\/index.php\/2018\/05\/20\/%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85kms%e6%9c%8d%e5%8a%a1%e8%84%9a%e6%9c%ac\/","title":{"rendered":"\u4e00\u952e\u5b89\u88c5KMS\u670d\u52a1\u811a\u672c"},"content":{"rendered":"<p>KMS\uff0c\u662f Key Management System \u7684\u7f29\u5199\uff0c\u4e5f\u5c31\u662f\u5bc6\u94a5\u7ba1\u7406\u7cfb\u7edf\u3002\u8fd9\u91cc\u6240\u8bf4\u7684 KMS\uff0c\u6bcb\u5eb8\u7f6e\u7591\u5c31\u662f\u7528\u6765\u6fc0\u6d3b VOL \u7248\u672c\u7684 Windows \u548c Office \u7684 KMS \u5566\u3002\u7ecf\u5e38\u80fd\u5728\u7f51\u4e0a\u770b\u5230\u6709\u4eba\u63d0\u4f9b\u7684 KMS \u670d\u52a1\u5668\u5730\u5740\uff0c\u90a3\u4e48\u4f60\u6709\u6ca1\u6709\u60f3\u8fc7\u81ea\u5df1\u4e5f\u6765\u641e\u4e00\u4e2a\u8fd9\u6837\u7684\u670d\u52a1\u5462\uff1f\u800c\u8fd9\u6837\u7684\u670d\u52a1\u5728 Github \u4e0a\u5df2\u7ecf\u6709<a href=\"https:\/\/github.com\/Wind4\/vlmcsd\" target=\"_blank\" rel=\"noopener noreferrer\">\u5f00\u6e90\u4ee3\u7801<\/a>\u5b9e\u73b0\u4e86\u3002<br \/>\n\u672c\u6587\u5c31\u662f\u5728\u8fd9\u4e2a\u5f00\u6e90\u4ee3\u7801\u7684\u57fa\u7840\u4e0a\uff0c\u5f00\u53d1\u4e86\u9002\u7528\u4e8e\u4e09\u5927 Linux \u53d1\u884c\u7248\u7684\u4e00\u952e\u5b89\u88c5 KMS \u670d\u52a1\u7684\u811a\u672c\u3002<!--more--><\/p>\n<h2>\u672c\u811a\u672c\u9002\u7528\u73af\u5883<\/h2>\n<p>\u7cfb\u7edf\u652f\u6301\uff1aCentOS 6+\uff0cDebian 7+\uff0cUbuntu 12+<br \/>\n\u865a\u62df\u6280\u672f\uff1a\u4efb\u610f<br \/>\n\u5185\u5b58\u8981\u6c42\uff1a\u2265128M<br \/>\n\u65e5\u671f\u3000\u3000\uff1a2018 \u5e74 04 \u6708 15 \u65e5<\/p>\n<h3>\u5173\u4e8e\u672c\u811a\u672c<\/h3>\n<p>1\u3001\u672c\u811a\u672c\u9002\u7528\u4e8e\u4e09\u5927 Linux \u53d1\u884c\u7248\uff0c\u5176\u4ed6\u7248\u672c\u5219\u4e0d\u652f\u6301\u3002<br \/>\n2\u3001KMS \u670d\u52a1\u5b89\u88c5\u5b8c\u6210\u540e\u4f1a\u52a0\u5165\u5f00\u673a\u81ea\u542f\u52a8\u3002<br \/>\n3\u3001\u9ed8\u8ba4\u8bb0\u5f55\u65e5\u5fd7\uff0c\u5176\u65e5\u5fd7\u4f4d\u4e8e \/var\/log\/vlmcsd.log\u3002<\/p>\n<h3>\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<p>\u4f7f\u7528root\u7528\u6237\u767b\u5f55\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre class=\"prettyprint lang-bsh\"> wget --no-check-certificate https:\/\/github.com\/teddysun\/across\/raw\/master\/kms.sh &amp;&amp; chmod +x kms.sh &amp;&amp; .\/kms.sh\n<\/pre>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u7aef\u53e3\u53f7 1688 \u7684\u76d1\u542c\u60c5\u51b5<\/p>\n<pre class=\"prettyprint lang-bsh\">netstat -nxtlp | grep 1688<\/pre>\n<p>\u8fd4\u56de\u503c\u7c7b\u4f3c\u4e8e\u5982\u4e0b\u8fd9\u6837\u5c31\u8868\u793a OK \u4e86\uff1a<\/p>\n<pre class=\"prettyprint lang-bsh\">tcp        0      0 0.0.0.0:1688                0.0.0.0:*                   LISTEN      3200\/vlmcsd         \ntcp        0      0 :::1688                     :::*                        LISTEN      3200\/vlmcsd<\/pre>\n<p>\u672c\u811a\u672c\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f1a\u5c06 KMS \u670d\u52a1\u52a0\u5165\u5f00\u673a\u81ea\u542f\u52a8\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u4f7f\u7528\u547d\u4ee4\uff1a<\/strong><br \/>\n\u542f\u52a8\uff1a\/etc\/init.d\/kms start<br \/>\n\u505c\u6b62\uff1a\/etc\/init.d\/kms stop<br \/>\n\u91cd\u542f\uff1a\/etc\/init.d\/kms restart<br \/>\n\u72b6\u6001\uff1a\/etc\/init.d\/kms status<\/p>\n<p><strong>\u5378\u8f7d\u65b9\u6cd5\uff1a<\/strong><br \/>\n\u4f7f\u7528 root \u7528\u6237\u767b\u5f55\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre class=\"prettyprint lang-bsh\">.\/kms.sh uninstall<\/pre>\n<h3>\u5982\u4f55\u4f7f\u7528 KMS \u670d\u52a1<\/h3>\n<div class=\"google-auto-placed\">\n<p>KMS \u670d\u52a1\uff0c\u7528\u4e8e\u5728\u7ebf\u6fc0\u6d3b VOL \u7248\u672c\u7684 Windows \u548c Office\u3002<br \/>\n\u6fc0\u6d3b\u7684\u524d\u63d0\u662f\u4f60\u7684\u7cfb\u7edf\u662f\u6279\u91cf\u6388\u6743\u7248\u672c\uff0c\u5373 VL \u7248\uff0c\u4e00\u822c\u4f01\u4e1a\u7248\u90fd\u662f VL \u7248\u3002\u800c VL \u7248\u672c\u7684\u955c\u50cf\u4e00\u822c\u5185\u7f6e GVLK key\uff0c\u7528\u4e8e KMS \u6fc0\u6d3b\u3002<br \/>\n\u4e0b\u9762\u5217\u8868\u91cc\u9762\u542b\u6709\u7684\u4ea7\u54c1\u7684 VL \u7248\u672c\u6216\u8005\u80fd\u4f7f\u7528 key \u8fdb\u5165 KMS \u901a\u9053\u7684\u4ea7\u54c1\uff0c\u90fd\u652f\u6301\u4f7f\u7528 KMS \u6fc0\u6d3b\u3002<\/p>\n<p>Office 2016\uff1a<a href=\"https:\/\/technet.microsoft.com\/zh-cn\/library\/dn385360(v=office.16).aspx\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/technet.microsoft.com\/zh-cn\/library\/dn385360(v=office.16).aspx<\/a><br \/>\nOffice 2013\uff1a<a href=\"https:\/\/technet.microsoft.com\/ZH-CN\/library\/dn385360.aspx\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/technet.microsoft.com\/ZH-CN\/library\/dn385360.aspx<\/a><br \/>\nOffice 2010\uff1a<a href=\"https:\/\/technet.microsoft.com\/ZH-CN\/library\/ee624355(v=office.14).aspx\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/technet.microsoft.com\/ZH-CN\/library\/ee624355(v=office.14).aspx<\/a><br \/>\nWindows\uff1a<a href=\"https:\/\/docs.microsoft.com\/zh-cn\/windows-server\/get-started\/kmsclientkeys\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.microsoft.com\/zh-cn\/windows-server\/get-started\/kmsclientkeys<\/a><\/p>\n<p>\u4f7f\u7528\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c cmd \u67e5\u770b\u7cfb\u7edf\u7248\u672c\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre class=\"prettyprint lang-bsh\">wmic os get caption<\/pre>\n<p>\u4f7f\u7528\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c cmd \u5b89\u88c5\u4ece\u4e0a\u9762\u5217\u8868\u5f97\u5230\u7684 key\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre class=\"prettyprint lang-bsh\"> slmgr \/ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx<\/pre>\n<p>\u4f7f\u7528\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c cmd \u5c06 KMS \u670d\u52a1\u5668\u5730\u5740\u8bbe\u7f6e\u4e3a\u4f60\u81ea\u5df1\u7684 IP \u6216 \u57df\u540d\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre class=\"prettyprint lang-bsh\"> slmgr \/skms Your IP or Domain<\/pre>\n<p><b>\u6ce8\u610f\uff1a<\/b>\u672c\u811a\u672c\u6240\u505a\u7684\u5de5\u4f5c\u5c31\u662f\u6b64\u6b65\u9aa4\u3002\u5f53\u4f60\u7684 KMS \u670d\u52a1\u51fa\u4e8e\u542f\u52a8\u72b6\u6001\uff0c\u90a3\u4e48\u6b64\u5904\u5c31\u53ef\u4ee5\u8bbe\u7f6e\u4e3a\u4f60\u81ea\u5df1\u7684 KMS \u670d\u52a1\u5668\u5730\u5740\u3002<br \/>\n\u4f7f\u7528\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c cmd \u624b\u52a8\u6fc0\u6d3b\u7cfb\u7edf\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre class=\"prettyprint lang-bsh\">slmgr \/ato<\/pre>\n<p>\u5173\u4e8e Office \u7684\u6fc0\u6d3b\uff0c\u8981\u6c42\u5fc5\u987b\u662f VOL \u7248\u672c\uff0c\u5426\u5219\u65e0\u6cd5\u6fc0\u6d3b\u3002<br \/>\n\u627e\u5230\u4f60\u7684 Office \u5b89\u88c5\u76ee\u5f55\uff0c32 \u4f4d\u9ed8\u8ba4\u4e00\u822c\u4e3a C:\\Program Files (x86)\\Microsoft Office\\Office16<br \/>\n64 \u4f4d\u9ed8\u8ba4\u4e00\u822c\u4e3a C:\\Program Files\\Microsoft Office\\Office16<br \/>\nOffice16 \u662f Office 2016\uff0cOffice15 \u5c31\u662f Office 2013\uff0cOffice14 \u5c31\u662f Office 2010\u3002<br \/>\n\u6253\u5f00\u4ee5\u4e0a\u6240\u8bf4\u7684\u76ee\u5f55\uff0c\u5e94\u8be5\u6709\u4e2a OSPP.VBS \u6587\u4ef6\u3002<br \/>\n\u4f7f\u7528\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c cmd \u8fdb\u5165 Office \u76ee\u5f55\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre class=\"prettyprint lang-bsh\"> cd \"C:\\Program Files (x86)\\Microsoft Office\\Office16\"<\/pre>\n<p>\u4f7f\u7528\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c cmd \u6ce8\u518c KMS \u670d\u52a1\u5668\u5730\u5740\uff1a<\/p>\n<pre class=\"prettyprint lang-bsh\">cscript ospp.vbs \/sethst:Your IP or Domain<\/pre>\n<p>\u4f7f\u7528\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c cmd \u624b\u52a8\u6fc0\u6d3b Office\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre class=\"prettyprint lang-bsh\">cscript ospp.vbs \/act<\/pre>\n<p><b>\u6ce8\u610f\uff1a<\/b> KMS \u65b9\u5f0f\u6fc0\u6d3b\uff0c\u5176\u6709\u6548\u671f\u53ea\u6709 180 \u5929\u3002<br \/>\n\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5411 KMS \u670d\u52a1\u5668\u8bf7\u6c42\u7eed\u671f\uff0c\u8bf7\u786e\u4fdd\u4f60\u81ea\u5df1\u7684 KMS \u670d\u52a1\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<h3>\u5e38\u89c1\u9519\u8bef\u7684\u5bf9\u7b56<\/h3>\n<p>\u5982\u679c\u9047\u5230\u5728\u6267\u884c\u8fc7\u7a0b\u62a5\u9519\uff0c\u8bf7\u6309\u4ee5\u4e0b\u6b65\u9aa4\u68c0\u67e5\uff1a<br \/>\n1\uff0c\u4f60\u7684 KMS \u670d\u52a1\u5668\u662f\u5426\u6302\u4e86\uff1f<br \/>\n2\uff0c\u4f60\u7684 KMS \u670d\u52a1\u662f\u5426\u6b63\u5e38\u5f00\u542f\uff1f<br \/>\n3\uff0c\u4f60\u7684\u7cfb\u7edf\u6216 Office \u662f\u5426\u4e3a\u6279\u91cf VL \u7248\u672c\uff1f<br \/>\n4\uff0c\u4f60\u7684\u7cfb\u7edf\u6216 Office \u662f\u5426\u4fee\u6539\u8fc7 Key \u6216\u672a\u5b89\u88c5 GVLK Key\uff1f<br \/>\n5\uff0c\u4f60\u662f\u5426\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c cmd\uff1f<br \/>\n6\uff0c\u4f60\u7684\u7f51\u7edc\u8fde\u63a5\u662f\u5426\u6b63\u5e38\uff1f<br \/>\n7\uff0c\u4f60\u7684\u672c\u5730 DNS \u89e3\u6790\u662f\u5426\u6b63\u5e38\uff1f<br \/>\n8\uff0c\u5982\u679c\u4f60\u6392\u9664\u4e86\u4ee5\u4e0a\u7684\u5bf9\u7b56\uff0c\u90a3\u8bf7\u6839\u636e\u9519\u8bef\u63d0\u793a\u4ee3\u7801\u81ea\u884c\u641c\u7d22\u539f\u56e0\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>KMS\uff0c\u662f Key Management System \u7684\u7f29\u5199\uff0c\u4e5f\u5c31\u662f\u5bc6\u94a5\u7ba1\u7406\u7cfb\u7edf\u3002\u8fd9\u91cc\u6240\u8bf4\u7684 KMS\uff0c\u6bcb\u5eb8\u7f6e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"status","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-234","post","type-post","status-publish","format-status","hentry","category-lab","post_format-post-format-status"],"_links":{"self":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/posts\/234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/comments?post=234"}],"version-history":[{"count":0,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/posts\/234\/revisions"}],"wp:attachment":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/media?parent=234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/categories?post=234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/tags?post=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}