可用于激活你的Windows 7 8 10 2008 2012 2012r2 2016 2019等众多版本
1. 准备一台Centos的主机或者虚拟机,要安装wget和unzip
yum -y install wget
yum -y install unzip
2. 创建KMS服务器步骤
# wget --no-check-certificate http://www.51ittech.com/zblog/download/vlmcsd-svn812-2015-08-30-Hotbird64.zip
# unzip -q vlmcsd-svn812-2015-08-30-Hotbird64.zip -d /usr/local/
# ln -sv /usr/local/vlmcsd-svn812-2015-08-30-Hotbird64/ /usr/local/KMS
# echo "export PATH=/usr/local/KMS/binaries/Linux/intel/static:\$PATH" > /etc/profile.d/vlmcs.sh
# source /etc/profile.d/vlmcs.sh
# chmod +x /usr/local/KMS/binaries/Linux/intel/static/*
# echo "vlmcsd-x64-musl-static" >> /etc/rc.local
# vlmcsd-x64-musl-static
3. 防火墙开启TCP的1688端口
#centos6是(iptables)
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 1688 -j ACCEPT
service iptables save
service iptables restart
#centos7是(firewall)
firewall-cmd --permanent --zone=public --add-port=1688/tcp
firewall-cmd --reload
4. 关闭SELinux
#即时生效并永久关闭SELinux的命令
sed -i 's/^SELINUX=.*/#&/;s/^SELINUXTYPE=.*/#&/;/SELINUX=.*/a SELINUX=disabled' /etc/sysconfig/selinux && /usr/sbin/setenforce 0
5. 已经搭建完成