vlmcsd是一个用C编写的KMS Emulator,具有易于部署、跨平台等诸多特性。

安装:

1
2
3
4
5
6
7
apt install -y gcc git make
git clone https://github.com/Wind4/vlmcsd.git
cd vlmcsd && make
mkdir /usr/local/kms
cp ./bin/vlmcsd /usr/local/kms/
chmod +x /usr/local/kms/vlmcsd
cd .. && rm -rf vlmcsd

端口放行:

1
2
3
iptables -I INPUT -p tcp --dport 1688 -j ACCEPT
service iptables save && service iptables restart
# firewall-cmd --zone=public --add-port=1688/tcp --permanent && firewall-cmd reload

启动:

1
/usr/local/kms/vlmcsd -L 0.0.0.0:1688

(可将其加入/etc/rc.local以实现开机自启)

停止:

1
kill `ps -ef | grep -v grep | grep -i "vlmcsd" | awk '{print $2}'`

好,又愉快地水了一篇23333