CentOS安装vlmcsd搭建KMS激活服务器

文章目录

Key Management Service(简称:KMS),这个功能是在Windows Vista之后的产品中的一种新型产品激活机制。我们可以利用手里闲置的VPS安装vlmcsd来搭建KMS激活服务器,这篇文章以CentOS为例,当然vlmcsd并不局限限于CentOS,如Ubuntu、Windows、MacOS等都可以安装服务端,原理和方法相同。

安装vlmcsd服务端

首先在vlmcsd/releases下载最新版本 以下命令供参考:

#下载vlmcsd
wget http://soft.xiaoz.org/linux/vlmcsd-1111-2017-06-17-Hotbird64.gz
#解压
tar -zxvf vlmcsd-1111-2017-06-17-Hotbird64.gz
#进入对应目录,请根据自己不同系统和CPU自行区分
cd binaries/Linux/intel/static
#将vlmcsd的二进制文件拷贝到/usr/sbin
cp vlmcsd-x64-musl-static /usr/sbin/vlmcsd

如果不出意外,输入vlmcsd -h可以查看帮助,如下截图。
CentOS安装vlmcsd搭建KMS激活服务器

再次输入vlmcsd命令来运行vlmcsd,如果没有报错,可输入netstat -apn|grep 'vlmcsd'查看是否运行,如下截图。

CentOS安装vlmcsd搭建KMS激活服务器

放行端口:vlmcsd监听1688端口,因此需要在防火墙放行该端口:

#如果使用的是firewalld
firewall-cmd --zone=public --add-port=1688/tcp --permanent
firewall-cmd --reload
#如果使用的是iptables
iptables -A INPUT -p tcp --dport 1688 -j ACCEPT
service iptables save
service iptables restart

至此,vlmcsd服务端已架设完成。如果上面的说明没看懂或觉得太复杂了?可以使用秋水逸冰的一键脚本安装vlmcsd:一键安装KMS服务脚本

本地测试(此步骤可省略)

本地以Windows为例,将客户端\binaries\Windows\intel\vlmcs-Windows-x64.exe解压到任意目录,并进入该目录,执行下面的命令进行测试:

vlmcs-Windows-x64.exe -v -l 3 你的VPS的IP或者绑定的域名

如果看到下面的返回信息说明连接成功,测试通过。

CentOS安装vlmcsd搭建KMS激活服务器

激活Windows or Office

激活Windows

以管理员身份运行cmd终端,并依次输入下面的命令,或者自行新建一个*.bat文件写入下面的内容。

cd /d "%SystemRoot%\system32"
slmgr /skms 你的VPS的IP或者绑定的域名
slmgr /ato
slmgr /xpr

激活Office

#进入office安装目录,可能不同版本目录有区别,请自行修改
cd /d "%ProgramFiles%\Microsoft Office\Office15"
#依次执行下面的命令
cscript ospp.vbs /sethst:你的VPS的IP或者绑定的域名
cscript ospp.vbs /act
cscript ospp.vbs /dstatus

注意事项

  • KMS方式激活的有效期只有180天
  • 此教程仅供学习测试,请24小时内自行删除相关软件和忘掉方法

文章固定链接:www.rakbuluo.com/p63

原文链接:,转发请注明来源!

发表评论

  • 18 Responses to “CentOS安装vlmcsd搭建KMS激活服务器”
    • FmsgAniny

      immun mot viagra <a href="https://siviagmen.com/#">viagra Г§a sert a quoi</a> women on viagra what happens

      回复
    • Kbrgboop

      buy real viagra no prescription <a href="https://miraclevigra.com/#">female viagra buy online india</a> sildenafil 100 mg generic price

      回复
    • Fdbvprest

      generic viagra online no prescription <a href="https://hopeviagrin.com/#">sildenafil 20 mg sale</a> buy sildenafil generic

      回复
    • Dbsfprest

      viagra 400 mg <a href="https://lightvigra.com/#">no script viagra</a> sildenafil 220

      回复
    • Jsweblafe

      female viagra 50 mg <a href="https://mygoviagar.com/#">real viagra online canada</a> viagra india pharmacy

      回复
    • Juan Mohorovich

      After examine a couple of of the weblog posts in your web site now, and I truly like your means of blogging. I bookmarked it to my bookmark web site list and shall be checking back soon. Pls check out my website as well and let me know what you think.

      回复
    • https://mygoviagar.com/

      Viagra mexico online <a href="https://mygoviagar.com/">https://mygoviagar.com</a> can you purchase viagra over the counter

      回复
    • where can i buy generic viagra in canada

      Cheap generic viagra 100mg canada <a href="https://miraclevigra.com/">https://miraclevigra.com/</a> cheap generic india viagra

      回复
    • FhsbAniny

      tiempo de efecto viagra <a href="https://buybuyviamen.com/#">buybuyviamen.com</a> how safe is to take viagra

      回复
    • FbsgAniny

      viagra 3 free pills <a href="https://buybuyviamen.com/#">where to buy viagra in taipei</a> viagra eurim

      回复
    • Kmrfboop

      viagra insurance coverage aetna <a href="https://purevigra.com/#">https://purevigra.com</a> viagra side effects and precautions

      回复
    • Frbhprest

      best viagra <a href="https://paradiseviagira.com/#">https://paradiseviagira.com/</a> cheap viagra and cialis in australia

      回复
    • Jivhblafe

      viagra elimination <a href="https://purevigra.com/#">melhor forma de usar o viagra</a> garlic natural viagra

      回复
    • JildcAniny

      buying online viagra http://fmedrx.com/ <a href="http://fmedrx.com/#">what is generic viagra</a> best generic viagra online reviews

      回复
    • KmrfAniny

      buy viagra online http://usggrxmed.com/ <a href="http://usggrxmed.com/#">generic viagra canada pharmacy</a> order viagra online usa

      回复
    • viagra for sale online usa

      Blow-dry the area as you apply it with a hair dryer on low heat...

      <a href="http://siviagmen.com/">viagra for sale online usa</a> viagra for men online

      回复
    • alternative to viagra

      I am supposed to take my temp and pulse 5 times a day for 5 days.
      <a href="https://saleviabuy.com/">alternative to viagra</a> viagra best buy reviews

      回复
    • Stephenpeaky

      viagra coupon <a href=" http://sild100fast.com/# ">generic viagra</a> viagra online canadian pharmacy

      回复