kms服务器搭建注意:此应用仅能作为测试实验使用,请勿商业应用.vlmcsd是一个用于批量授权版的在线激活windows或ms office的一个服务程序,及KMS服务器.可以搭建在Android, FreeBSD, Solaris, Minix, Mac OS, iOS, Windows上.安装vlmcsdgithub项目地址:https://github.com/Wind4/vlmcsd下载,解压[root@cqds-db-mysql01 /opt]# cd /opt [root@cqds-db-mysql01 /opt]# wget https://github.com/Wind4/vlmcsd/releases/download/svn1113/binaries.tar.gz [root@cqds-db-mysql01 /opt]# tar xf binaries.tar.gz选择对应系统环境的程序[root@cqds-db-mysql01 /opt]# cd binaries/ [root@cqds-db-mysql01 /opt/binaries]# pwd /opt/binaries [root@cqds-db-mysql01 /opt/binaries]# ll total 0 drwxr-xr-x 5 mysql mysql 42 Mar 29 2020 Android drwxr-xr-x 3 mysql mysql 19 Mar 29 2020 DragonFly drwxr-xr-x 3 mysql mysql 19 Mar 29 2020 FreeBSD drwxr-xr-x 3 mysql mysql 19 Mar 29 2020 Hurd drwxr-xr-x 3 mysql mysql 17 Mar 29 2020 iOS drwxr-xr-x 8 mysql mysql 78 Mar 29 2020 Linux drwxr-xr-x 4 mysql mysql 30 Mar 29 2020 MacOSX drwxr-xr-x 3 mysql mysql 19 Mar 29 2020 Minix drwxr-xr-x 3 mysql mysql 19 Mar 29 2020 NetBSD drwxr-xr-x 3 mysql mysql 19 Mar 29 2020 OpenBSD drwxr-xr-x 3 mysql mysql 19 Mar 29 2020 Solaris drwxr-xr-x 3 mysql mysql 19 Mar 29 2020 Windows [root@cqds-db-mysql01 /opt/binaries]# ll Linux/ total 0 drwxr-xr-x 4 mysql mysql 45 Mar 29 2020 arm drwxr-xr-x 6 mysql mysql 59 Mar 29 2020 intel drwxr-xr-x 4 mysql mysql 45 Mar 29 2020 mips drwxr-xr-x 4 mysql mysql 45 Mar 29 2020 ppc drwxr-xr-x 3 mysql mysql 19 Mar 29 2020 s390 drwxr-xr-x 3 mysql mysql 19 Mar 29 2020 sparc [root@cqds-db-mysql01 /opt/binaries]# ll Linux/intel/static/ total 852 -rwxr-xr-x 1 mysql mysql 130907 Mar 29 2020 vlmcsdmulti-x64-musl-static -rwxr-xr-x 1 mysql mysql 130556 Mar 29 2020 vlmcsdmulti-x86-musl-static -rwxr-xr-x 1 mysql mysql 130944 Mar 29 2020 vlmcsdmulti-x86-musl-static-threads -rwxr-xr-x 1 mysql mysql 93851 Mar 29 2020 vlmcsd-x64-musl-static -rwxr-xr-x 1 mysql mysql 93756 Mar 29 2020 vlmcsd-x86-musl-static -rwxr-xr-x 1 mysql mysql 94208 Mar 29 2020 vlmcsd-x86-musl-static-threads -rwxr-xr-x 1 mysql mysql 97659 Mar 29 2020 vlmcs-x64-musl-static -rwxr-xr-x 1 mysql mysql 97436 Mar 29 2020 vlmcs-x86-musl-static启动服务[root@cqds-db-mysql01 /opt/binaries]# cd Linux/intel/static/ [root@cqds-db-mysql01 /opt/binaries/Linux/intel/static]# ./vlmcsd-x64-musl-static [root@cqds-db-mysql01 /opt/binaries/Linux/intel/static]# netstat -lntup Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2989/sshd tcp 0 0 0.0.0.0:1688 0.0.0.0:* LISTEN 26606/./vlmcsd-x64- tcp6 0 0 :::22 :::* LISTEN 2989/sshd tcp6 0 0 :::1688 :::* LISTEN 26606/./vlmcsd-x64-使用systemd管理vlmcsd服务Centos 7:在/usr/lib/systemd/system下新建文件 vlmcsd.service 文件,并配置如下内容:[root@cqds-db-mysql01 /opt/binaries/Linux/intel/static]# vim /usr/lib/systemd/system/vlmcsd.service [Unit] Description=vlmcsd After=syslog.target After=network.target [Service] Type=forking ExecStart=/opt/binaries/Linux/intel/static/vlmcsd-x64-musl-static #此处为二进制文件存放路径，根据自己实际情况填入。 [Install] WantedBy=multi-user.targetPS:Debian9的路径在目录/lib/systemd/system加入开机自启[root@cqds-db-mysql01 /opt/binaries/Linux/intel/static]# systemctl enable vlmcsd.service激活windows激活Windows前需要确定windows使用的是零售版还是批量授权版（也就是VOL版），如果是零售版，需要将系统的序列号改为VOL版本的序列号。一般企业版都是VL版，专业版有零售和VL版，家庭版旗舰版OEM版等等那就肯定不能用kms激活。wmic os get #caption查看系统版本 slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx #配置系统序列号 slmgr /skms 192.168.1.10 #配置KMS服务器地址 slmgr /ato #激活系统 slmgr /xpr #查看系统激活到期时间 slmgr /dlv #查看授权详细信息激活officeOFFICE必须是VOL版本以管理员身份打开命令提示符，进入软件安装目录, 比如说 office 2016 64位 ，装在D盘下安装目录：D:Program FilesMicrosoft OfficeOffice16，执行如下：cscript ospp.vbs /sethst:VPS的IP或者绑定的域名 cscript ospp.vbs /act cscript ospp.vbs /dstatus注意： 激活时间为180天，时间到了后要重激活参考链接:https://www.conum.cn/os/windows/217.htmlhttps://www.jianshu.com/p/4c6a11f2c735https://03k.org/kms.htmlhttps://www.jianshu.com/p/11d51983852ehttps://www.cnblogs.com/osker/p/12374150.htmlhttp://wind4.github.io/vlmcsd/