vlmcsd安装配置

获取最新版下载地址

    https://github.com/Wind4/vlmcsd/releases

获取并解压文件

wget https://github.com/Wind4/vlmcsd/releases/download/svn1111/binaries.tar.gz
tar -zxvf binaries.tar.gz
//进入相对应的目录
    比如我CPU是Intel,系统是64位的CentOS 7,那么我就进入binaries/Linux/intel/glibc 。
cd binaries/Linux/intel/glibc
cp vlmcsd-x64-glibc /usr/sbin/vlmcsd

启动脚本

vim /usr/lib/systemd/system/vlmcsd.service

vlmcsd.service

[Unit]
Description=KMS
After=network.target

[Service]
Type=forking
ExecStart=/usr/sbin/vlmcsd -l /var/log/vlmcsd.log
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target

启动vlmcsd并设置自启动

systemctl start vlmcsd && systemctl enable vlmcsd

分享