找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 27|回复: 1

KMS 搭建,设置开机启动

[复制链接]

6

主题

2

回帖

36

积分

新手上路

积分
36
发表于 2024-1-31 21:52:15 | 显示全部楼层 |阅读模式
下载文件
  1. https://gh.ddlc.top/https://github.com/Wind4/vlmcsd/releases/download/svn1113/binaries.tar.gz
复制代码
解压
  1. tar -zxvf binaries.tar.gz
复制代码
进入文件
  1. cd /root/binaries/Linux/arm/little-endian/static/
  2. ls
  3. ./vlmcsd-armv7el-uclibc-static
复制代码
复制文件到/usr/bin 并设置权限755
  1. cp vlmcsd-armv7el-uclibc-static /usr/bin/vlmcsd
复制代码
设置启动服务脚本
  1. tee /usr/lib/systemd/system/vlmcsd.service <<-'EOF'
  2. [Unit]
  3. Description=KMS Server By Warren
  4. After=network.target

  5. [Service]
  6. Type=simple
  7. Restart=on-failure
  8. RestartSec=5s
  9. ExecStart=/usr/bin/vlmcsd -D -u nobody -g nogroup
  10. LimitNOFILE=1048576

  11. [Install]
  12. WantedBy=multi-user.target
  13. EOF
复制代码


置开机启动及查看状态

  1. systemctl enable vlmcsd
  2. systemctl start vlmcsd
  3. systemctl status vlmcsd
复制代码

在winsows操作系统中管理员运行CMD
  1. slmgr /skms 192.168.01
  2. slmgr /ato
复制代码
office 复制以下命令放到bat文件里以管理员身份运行
可能 要用到office 批量密钥 :NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
  1. @echo off
  2. (cd /d "%~dp0")&&(NET FILE||(powershell start-process -FilePath '%0' -verb runas)&&(exit /B)) >NUL 2>&1
  3. title Office 2019 Activator r/Piracy
  4. echo Converting... & mode 40,25
  5. (if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)
  6. cscript //nologo ospp.vbs /unpkey:6MWKP >nul&cscript //nologo ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP >nul&set i=1
  7. :server
  8. if %i%==1 set KMS_Sev=192.168.0.11
  9. cscript //nologo ospp.vbs /sethst:%KMS_Sev% >nul
  10. echo %KMS_Sev% & echo Activating...
  11. cscript //nologo ospp.vbs /act | find /i "successful" && (echo Complete) || (echo Trying another KMS Server & set /a i+=1 & goto server)
  12. pause >nul
  13. exit
复制代码








6

主题

2

回帖

36

积分

新手上路

积分
36
 楼主| 发表于 2024-1-31 21:55:30 | 显示全部楼层
可能 要用到office 批量密钥 :NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Home!

GMT+8, 2025-12-6 12:37 , Processed in 0.020880 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表