{"id":883,"date":"2021-04-12T18:27:21","date_gmt":"2021-04-12T10:27:21","guid":{"rendered":"https:\/\/cyups.myqnapcloud.cn:8081\/bg\/?p=883"},"modified":"2021-04-12T18:27:21","modified_gmt":"2021-04-12T10:27:21","slug":"%e6%90%ad%e5%bb%ba%e5%b1%9e%e4%ba%8e%e8%87%aa%e5%b7%b1%e7%9a%84kms%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"http:\/\/www.cyups.com\/?p=883","title":{"rendered":"\u642d\u5efa\u5c5e\u4e8e\u81ea\u5df1\u7684kms\u670d\u52a1\u5668"},"content":{"rendered":"\n<p>\u76f8\u4fe1\u6709\u5f88\u591a\u5c0f\u4f19\u4f34\u90fd\u7528\u7684\u662f\u7834\u89e3windows\/office\u7b49\uff0c\u901a\u5e38\u4f1a\u9047\u5230\u6fc0\u6d3b\u8fc7\u671f\u95ee\u9898<br \/>\u8fd9\u4e2a\u65f6\u5019\u90fd\u4f1a\u533a\u767e\u5ea6\u627e\u6fc0\u6d3b\u5de5\u5177\uff0c\u4f46\u73b0\u5728\u5927\u591a\u6570\u6fc0\u6d3b\u5de5\u5177\u90fd\u88ab\u52a0\u5165\u4e86\u5404\u79cd\u79c1\u6599\uff08\u6bd4\u5982\u5c0f\u9a6c\u6fc0\u6d3b\u7b49\uff09\u5f53\u7136\u5e76\u4e0d\u662f\u8bf4\u6709\u4e9b\u6fc0\u6d3b\u5de5\u5177\u7684\u4f5c\u8005\u52a0\u79c1\u6599\uff0c\u5927\u591a\u6570\u662f\u88ab\u4e00\u4e9b\u65e0\u826f\u7ad9\u957f\u6539\u7684\u3002<\/p>\n\n\n\n<p>\u4eca\u5929\u5c31\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e0b\u600e\u4e48\u5728vps\u4e0a\u642d\u5efa\u81ea\u5df1\u7684kms\u6fc0\u6d3b\u670d\u52a1\u5668\uff0c\u4e0d\u518d\u53d7\u5236\u4e8e\u5404\u79cd\u6fc0\u6d3b\u5de5\u5177<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u914d\u7f6ekms<strong>\u670d\u52a1\u5668<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>vlmcsd\u4ecegithub\u4e0b\u8f7dhttps:\/\/github.com\/Wind4\/vlmcsd\/releases\u4e0b\u8f7d\u6700\u65b0\u7248<\/li><li>\u914d\u7f6e\u524d\u5148\u66f4\u65b0\u4e00\u4e0b\u670d\u52a1\u5668\u7cfb\u7edf\uff0c\u6267\u884c\u547d\u4ee4<br \/>yum update<br \/>apt update<\/li><li>\u786e\u5b9a\u4e00\u4e0b\u4f60\u8fd9\u53f0\u673a\u5668\u7684CPU\u67b6\u6784\u6267\u884c\u547d\u4ee4<br \/><code>cat \/proc\/cpuinfo<\/code><br \/><img loading=\"lazy\" decoding=\"async\" width=\"656\" height=\"493\" src=\"https:\/\/qcxitong.cn\/wp-content\/uploads\/2020\/10\/5.png\" alt=\"\" srcset=\"https:\/\/qcxitong.cn\/wp-content\/uploads\/2020\/10\/5.png 656w, https:\/\/qcxitong.cn\/wp-content\/uploads\/2020\/10\/5-300x225.png 300w\"><\/li><li>\u7cfb\u7edf\u786c\u4ef6\u4e3aintel\u768464\u4f4dcpu\uff0c\u6240\u4ee5\u4e0b\u8f7d\u6210\u529f\u540e\uff0c\u89e3\u538b\u51fa\u6765binaries\\Linux\\intel\\static\\vlmcsd-x64-musl-static\uff0c\u5c06vlmcsd-x64-musl-static\u6587\u4ef6\u91cd\u547d\u540d\u4e3avlmcsd\uff0c<\/li><li>\u4f7f\u7528\u5de5\u5177\u5c06vlmcsd\u4e0a\u4f20\u5230\u670d\u52a1\u5668www\/vlmcsd\u76ee\u5f55\u4e0b\u5e76\u8d4b\u4e88\u6267\u884c\u6743\u9650<br \/>chmod 755 \/ww\/vlmcsd\/ *<\/li><li>\u6dfb\u52a0vlmcsd\u670d\u52a1\uff0c\u65b0\u5efavlmcsd.pid\u6587\u4ef6\u6267\u884c\u547d\u4ee4<br \/><code>vi \/www\/vlmcsd\/vlmcsd.pid<\/code><br \/>\u5185\u5bb9\u4e3a\u7a7a\u767d\uff0c\u4e0d\u8981\u8f93\u5165\uff0cesc\u952e\uff0c\u518d\u8f93\u5165:wq\u4fdd\u5b58\uff0c\u65b0\u5efa\u4e00\u4e2a\u7a7a\u7684\u6587\u4ef6\u4fdd\u5b58\u5c31\u597d\u4e86\uff0c\u4e3b\u8981\u76ee\u7684\u7528\u6765\u5b58\u653ePID\u7684\u6587\u4ef6\uff0c\u4fbf\u4e8e\u540e\u6765\u6dfb\u52a0service\u65f6\u8981\u7528\u5230<\/li><li>\u65b0\u5efavlmcsd.service\u6587\u4ef6\u6267\u884c\u547d\u4ee4<br \/><code>vi \/lib\/systemd\/system\/vlmcsd.service<\/code><\/li><li>\u5728\u65b0\u5efavlmcsd.service\u7684\u6587\u4ef6\u4e2d<br \/>\u8f93\u5165 i \u952e\uff0c\u7f16\u8f91\u6700\u5de6\u4e0b\u65b9\u51fa\u73b0 \u2014 INSERT \u2013\u8fdb\u884c\u7f16\u8f91\u4ee3\u7801\u5185\u5bb9\u5982\u4e0b<br \/><code>[Unit]<br \/>Description=KMS Server By vlmcsd<br \/>After=network.target<br \/>[Service]<br \/>Type=forking<br \/>PIDFile=\/www\/vlmcsd\/vlmcsd.pid<br \/>ExecStart=\/www\/vlmcsd\/vlmcsd -p \/www\/vlmcsd\/vlmcsd.pid<br \/>ExecStop=\/bin\/kill -HUP $MAINPID<br \/>PrivateTmp=true<br \/>[Install]<br \/>WantedBy=multi-user.target<\/code><br \/>\u4ee5\u4e0a\u5185\u5bb9\u8f93\u5165\u5b8c\u6bd5\uff0cesc\u952e\uff0c\u518d\u8f93\u5165:wq\u4fdd\u5b58\u5373\u53ef<br \/>\u91cd\u8f7d\u670d\u52a1\uff1asystemctl daemon-reload<br \/>\u542f\u52a8VLMCSD\uff1asystemctl start vlmcsd<br \/>\u67e5\u770bVLMCSD\u7684\u8fd0\u884c\u72b6\u6001\uff1asystemctl status vlmcsd<\/li><li>\u82e5\u51fa\u73b0\u7c7b\u4f3c\u5982\u4e0b\u663e\u793a\uff0c\u5219\u8868\u793a\u5df2\u7ecf\u8fd0\u884c<br \/><img loading=\"lazy\" decoding=\"async\" width=\"822\" height=\"206\" src=\"https:\/\/qcxitong.cn\/wp-content\/uploads\/2020\/10\/6.png\" alt=\"\" srcset=\"https:\/\/qcxitong.cn\/wp-content\/uploads\/2020\/10\/6.png 822w, https:\/\/qcxitong.cn\/wp-content\/uploads\/2020\/10\/6-300x75.png 300w, https:\/\/qcxitong.cn\/wp-content\/uploads\/2020\/10\/6-768x192.png 768w\"><\/li><li>vlmcsd\u4f7f\u7528\u7684\u662f1688\u7aef\u53e3\uff0c\u6240\u4ee5\u8981\u5f00\u542f1688\u7aef\u53e3<br \/><code>firewall-cmd --zone=public --add-port=1688\/tcp --permanent<\/code><br \/><code>firewall-cmd --reload<\/code><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u6fc0\u6d3b<\/h2>\n\n\n\n<p>\u5047\u8bbe\u670d\u52a1\u5668IP\u4e3a192.168.1.1<\/p>\n\n\n\n<p>\u4ee5Windows 10 \u4f01\u4e1a\u7248\u4e3a\u4f8b\uff0ccmd\u7ba1\u7406\u5458\u8fd0\u884cslmgr.vbs -upk<br \/><code>slmgr.vbs -ipk NPPR9-FWDCX-D2C8J-H872K-2YT43<br \/>slmgr.vbs -skms 192.168.1.1<br \/>slmgr.vbs -dlv<br \/>slmgr.vbs \/ato<\/code><\/p>\n\n\n\n<p>\u4ee5Windows 10 enterprise ltsc_2019\u4e3a\u4f8b\uff0ccmd\u7ba1\u7406\u5458\u8fd0\u884cslmgr.vbs -upk<br \/><code>slmgr.vbs -ipk M7XTQ-FN8P6-TTKYV-9D4CC-J462D<br \/>slmgr.vbs -skms 192.168.1.1<br \/>slmgr.vbs -dlv<br \/>slmgr.vbs \/ato<\/code><\/p>\n\n\n\n<p><strong>\u6fc0\u6d3boffice2010\u548c2016<\/strong><\/p>\n\n\n\n<p>\u4ee5office2010\u4e3a\u4f8b\uff0ccmd\u7ba1\u7406\u5458\u8fd0\u884c\uff0c\u4e0d\u662fPowerShellcd C:\\Program Files\\Microsoft Office\\Office14<br \/><code>cscript ospp.vbs \/sethst:192.168.1.1<br \/>cscript ospp.vbs \/act<\/code><\/p>\n\n\n\n<p>\u4ee5office2016\u4e3a\u4f8b\uff0ccmd\u7ba1\u7406\u5458\u8fd0\u884c\uff0c\u4e0d\u662fPowerShellcd C:\\Program Files\\Microsoft Office\\Office16<br \/><code>cscript ospp.vbs \/sethst:192.168.1.1<br \/>cscript ospp.vbs \/act<\/code><\/p>\n\n\n\n<p><strong>180\u5929\u5230\u671f\u518d\u6b21\u6fc0\u6d3b<\/strong><\/p>\n\n\n\n<p>Windows 10 enterprise\u3001Windows 10 ltsc 2019\u548cwindows server 2016\uff0ccmd\u7ba1\u7406\u5458\u8fd0\u884c\uff0c\u4e0d\u662fPowerShell\uff0c\u76f4\u63a5\u6267\u884c\u547d\u4ee4KMS\u670d\u52a1\u5668\u5730\u5740\u548cslmgr \/ato\u5373\u53ef\u518d\u6b21\u5ef6\u671f\u3002<\/p>\n\n\n\n<p><code>slmgr \/skms 192.168.1.1<br \/>slmgr \/ato<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">kms\u5fae\u8f6f\u5b98\u65b9\u5bc6\u94a5<br \/><a href=\"https:\/\/docs.microsoft.com\/en-us\/previous-versions\/windows\/it-pro\/windows-server-2012-R2-and-2012\/jj612867(v=ws.11)?redirectedfrom=MSDN\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/docs.microsoft.com\/en-us\/previous-versions\/windows\/it-pro\/windows-server-2012-R2-and-2012\/jj612867(v=ws.11)?redirectedfrom=MSDN<\/a><\/h2>\n","protected":false},"excerpt":{"rendered":"<p>\u76f8\u4fe1\u6709\u5f88\u591a\u5c0f\u4f19\u4f34\u90fd\u7528\u7684\u662f\u7834\u89e3windows\/office\u7b49\uff0c\u901a\u5e38\u4f1a\u9047\u5230\u6fc0\u6d3b\u8fc7\u671f\u95ee\u9898\u8fd9\u4e2a\u65f6\u5019\u90fd\u4f1a\u533a\u767e\u5ea6\u627e\u6fc0\u6d3b\u5de5\u5177\uff0c\u4f46\u73b0\u5728\u5927\u591a\u6570\u6fc0\u6d3b\u5de5 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-883","post","type-post","status-publish","format-standard","hentry","category-kuruantuijian"],"_links":{"self":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts\/883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=883"}],"version-history":[{"count":0,"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts\/883\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=883"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}