{"id":370,"date":"2017-06-21T15:21:27","date_gmt":"2017-06-21T07:21:27","guid":{"rendered":"http:\/\/www.isway.cn\/?p=370"},"modified":"2019-01-19T18:43:28","modified_gmt":"2019-01-19T10:43:28","slug":"%e5%9c%a8vps%e4%b8%8a%e6%90%ad%e5%bb%bakms%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.isway.cn\/?p=370","title":{"rendered":"\u5728VPS\u4e0a\u642d\u5efaKMS\u670d\u52a1\u5668"},"content":{"rendered":"<p>\u672c\u6587\u53c2\u8003\u81ea\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\" data-enlighter-theme=\"mootwo\" data-enlighter-linenumbers=\"false\">https:\/\/github.com\/dakkidaze\/one-key-kms\nhttps:\/\/forums.mydigitallife.net\/threads\/emulated-kms-servers-on-non-windows-platforms.50234\/<\/pre>\n<p>\u5229\u7528KMS\u6fc0\u6d3bWindows\u548cOffice<\/p>\n<p><!--more--><\/p>\n<p>\u4e00\u3001\u5b89\u88c5<br \/>\n1\u3001\u4e0b\u8f7d\u4e00\u952e\u5b89\u88c5\u811a\u672c\uff08\u4f1a\u81ea\u52a8git\u6700\u65b0\u7684vlmcsd\uff09,\u4ee5\u4e0b\u662f\u5728Ubuntu\u4e0b<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-theme=\"mootwo\">wget --no-check-certificate https:\/\/raw.githubusercontent.com\/dakkidaze\/one-key-kms\/master\/one-key-kms-debian.sh\nwget --no-check-certificate https:\/\/raw.githubusercontent.com\/dakkidaze\/one-key-kms\/master\/one-key-kms-centos.sh<\/pre>\n<p>2\u3001\u6dfb\u52a0\u6267\u884c\u6743\u9650\uff0c\u8fd0\u884c\u811a\u672c\uff0c\u7136\u540e\u8f93\u5165\u786e\u8ba4\u5b89\u88c5<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">chmod +x one-key-kms-debian.sh\n.\/one-key-kms-debian.sh<\/pre>\n<p>3\u3001\u67e5\u770b\u53ef\u4ee5\u4f7f\u7528\u7684\u547d\u4ee4<\/p>\n<pre class=\"EnlighterJSRAW\">cd \/usr\/local\/kms\/\n.\/vlmcsd -h<\/pre>\n<p>4\u3001\u4e00\u822c\u60c5\u51b5\u4e0b\u4e00\u4e2akms\u670d\u52a1\u5668\u53ea\u8981\u8dd1\u8d77\u6765\u5e76\u80fd\u8bb0\u5f55\u65e5\u5fd7\u5c31\u53ef\u4ee5\u4e86<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">.\/vlmcsd -L 0.0.0.0:1688 -l vlmcsd.log<\/pre>\n<p>\u4e8c\u3001\u5176\u5b83<br \/>\n1\u3001\u5982\u679c\u60f3\u770b\u770b\u8fd9\u4e2a\u7a0b\u5e8f\u90fd\u505a\u4e86\u4ec0\u4e48\uff0c\u53ef\u4ee5\u52a0\u4e0a-D\u53c2\u6570\uff0c\u670d\u52a1\u5668\u4f1a\u5728\u524d\u53f0\u8fd0\u884c\uff0c\u5c06\u65e5\u5fd7\u4fe1\u606f\u8f93\u51fa\u5230\u5c4f\u5e55\u4e0a\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">.\/vlmcsd -D<\/pre>\n<p>2\u3001\u505c\u6b62\u8fd0\u884c\u4f7f\u7528pkill\u5373\u53ef\uff1a<br \/>\npkill vlmcsd<br \/>\n3\u3001\u7ba1\u7406\u811a\u672c\uff08\u9700\u914d\u5408\u4e00\u952e\u5b89\u88c5\u811a\u672c\u4f7f\u7528\uff0c\u5982\u679c\u4e0d\u662f\u4f7f\u7528\u4e00\u952e\u5b89\u88c5\u811a\u672c\u4f7f\u7528\u8bf7\u624b\u52a8\u66f4\u6539\u811a\u672c\u91cc\u7684\u53ef\u6267\u884c\u6587\u4ef6\u8def\u5f84\uff09<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">wget --no-check-certificate https:\/\/raw.githubusercontent.com\/dakkidaze\/one-key-kms\/master\/kms.sh<\/pre>\n<p>4\u3001\u6709start\uff0cstop\uff0crestart\uff0cstatus\u56db\u4e2a\u529f\u80fd\uff0c\u76f4\u63a5\u6267\u884c\u5373\u53ef<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">.\/kms.sh start<\/pre>\n<p>\u6fc0\u6d3b\u76f8\u5173\uff1a<br \/>\n\u7528\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u547d\u4ee4\u884c\uff1a<br \/>\n\u4ee5Win10\u4e3a\u4f8b<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">slmgr.vbs -upk #\u5378\u8f7d\u5f53\u524d\u5bc6\u94a5\nslmgr.vbs -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX #\u5b89\u88c5\u5bc6\u94a5\nslmgr.vbs -skms 192.168.200.200 #\u66f4\u6539KMS\u6fc0\u6d3b\u670d\u52a1\u5668\nslmgr.vbs -ato #\u9a6c\u4e0a\u6fc0\u6d3b\nslmgr.vbs -dlv #\u663e\u793a\u6fc0\u6d3b\u4fe1\u606f<\/pre>\n<p>Office\u53c2\u8003<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">https:\/\/github.com\/luodaoyi\/kms-server<\/pre>\n<p>\u3010\u5b8c\u3011<\/p>\n<p>\u4e00\u952e\u5b89\u88c5\u811a\u672cone-key-kms-debian.sh\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"mootwo\">#! \/bin\/bash\n\n#One-key-kms script by Dakkidaze\n\nPATH=\/bin:\/sbin:\/usr\/bin:\/usr\/sbin:\/usr\/local\/bin:\/usr\/local\/sbin:~\/bin\nexport PATH\nclear\nstart(){\napt-get install gcc git make -y\nmkdir \/usr\/local\/kms\ncd \/usr\/local\/kms\ngit clone https:\/\/github.com\/Wind4\/vlmcsd.git\ncd vlmcsd\nmake\ncd bin\nmv vlmcsd \/usr\/local\/kms\/kms\ncd \/usr\/local\/kms\/\nrm -rf .\/vlmcsd\/\nmv kms vlmcsd\nclear\necho \"Succeeded.\"\necho \"The executable file lies in \/usr\/local\/kms\/\"\necho \"Remember that the server is not running right now.\"\necho \"Please use -h to find possible usage for the executable or visit vlmcsd on Github.\"\necho \"https:\/\/github.com\/Wind4\/vlmcsd\"\necho \"Addtionally, you may want to get a script to manage it.\"\necho \"In this case, you may download a script at the one-key-kms repository.\"\necho \"Thanks for your using!\"\necho \"Dakkidaze \"\n}\necho \"This script will automatically download and compile KMS Server program for you.\"\necho \"For more information, please visit https:\/\/github.com\/Wind4\/vlmcsd\"\necho \"Scrpit written by Dakkidaze \"\necho \"READY TO START?\"\nread -p \"y\/n:\" choice\ncase $choice in\n\"y\")\nstart\n;;\n\"n\")\nexit 0;\n;;\n*)\necho \"Please enter y or n!\"\n;;\nesac\n\n\u7ba1\u7406\u811a\u672ckms.sh#!\/bin\/bash\n# Author: Dakkidaze\n\nDAEMON=\/usr\/local\/kms\/vlmcsd\nSTAT=2\ncheck_running(){\nPID=`ps -ef | grep -v grep | grep -i \"vlmcsd\" | awk '{print $2}'`\nif [ ! -z $PID ]; then\nSTAT=0\nelse\nSTAT=1\nfi\n}\n\ndo_restart() {\ncheck_running\nif [ $STAT = 0 ]; then\necho \"Restarting KMS Server...\"\nkill $PID\nelif [ $STAT = 1 ]; then\necho \"Not started, starting now\"\nfi\n$DAEMON -L 0.0.0.0:1688 -l vlmcsd.log\ncheck_running\nif [ $STAT = 0 ]; then\necho \"Succeeded.\"\nelif [ $STAT = 1 ]; then\necho \"Failed.\"\nfi\n}\ndo_stop() {\ncheck_running\nif [ $STAT = 0 ]; then\necho \"Shutting down KMS Server...\"\nkill $PID\ncheck_running\nif [ $STAT = 0 ]; then\necho \"Failed.\"\nelif [ $STAT = 1 ]; then\necho \"Succeeded.\"\nfi\nelif [ $STAT = 1 ]; then\necho \"Not running, no kill.\"\nfi\n}\ndo_status() {\ncheck_running\nif [ $STAT = 0 ]; then\necho \"KMS Server is running.\"\nelif [ $STAT = 1 ]; then\necho \"KMS Server is not running.\"\nfi\n}\n\ndo_start() {\ncheck_running\nif [ $STAT = 0 ]; then\necho \"KMS Server is already running.\"\nexit 0;\nelif [ $STAT = 1 ]; then\necho \"KMS Server is not running, starting now...\"\n$DAEMON -L 0.0.0.0:1688 -l vlmcsd.log\nfi\ncheck_running\nif [ $STAT = 0 ]; then\necho \"Succeeded.\"\nelif [ $STAT = 1 ]; then\necho \"Failed.\"\nfi\n}\n\ncase \"$1\" in\nstart|stop|restart|status)\ndo_$1\n;;\n*)\necho \"Usage: $0 start | stop | restart | status \"\n;;\nesac<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u53c2\u8003\u81ea\uff1a https:\/\/github.com\/dakkidaze\/one-key-kms https:\/&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/www.isway.cn\/?p=370\">\u9605\u8bfb\u66f4\u591a<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-370","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"https:\/\/www.isway.cn\/index.php?rest_route=\/wp\/v2\/posts\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.isway.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.isway.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.isway.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.isway.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=370"}],"version-history":[{"count":7,"href":"https:\/\/www.isway.cn\/index.php?rest_route=\/wp\/v2\/posts\/370\/revisions"}],"predecessor-version":[{"id":385,"href":"https:\/\/www.isway.cn\/index.php?rest_route=\/wp\/v2\/posts\/370\/revisions\/385"}],"wp:attachment":[{"href":"https:\/\/www.isway.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.isway.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.isway.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}