我使用的是来自https://github.com/ThunderEX/py-kms的版本,基于 Python,py 是个好东西,我们以后再说,这里我简单记录一下我在使用过程的流水账吧。

yum install python-argparse
git clone https://github.com/ThunderEX/py-kms
cd py-kms  
python server.py

就 OK 了。操作简单明了,就不解释了。

为了能开机启动,可以利用supervisor

cp -r py-km /usr/local/
easy_install supervisor
echo_supervisord_conf > /etc/supervisord.conf 

最后编辑这个文件,在末尾写入

[program:pykms]  
command=python /usr/local/py-kms/server.py  
autorestart=true  
user=root

以daemon方式运行,执行

supervisord

设置一下防火墙就可以去测试一下了。