Git Product home page Git Product logo

kms-server-webui's Introduction

中文版

KMS激活服务器及在线生成一键激活脚本

安装

以CentOS系统为例

  1. 下载"kms.tar.gz"到服务器并解压
wget https://github.com/lichenzero/kms_server_webui/raw/master/kms.tar.gz
tar xzf kms.tar.gz
  1. 查看服务器CPU架构
cat /proc/cpuinfo
  1. 进入对应目录,运行激活服务器
  • 注意:需要根据CPU架构选择对应二进制文件,这里使用的是"vlmcsd-x64-musl-static"
cd binaries/Linux/intel/static
./vlmcsd-x64-musl-static
  • 如开启firewalld需要开放1688(TCP)端口
firewall-cmd --zone=public --add-port=1688/tcp --permanent #添加
firewall-cmd --reload   #重载生效

关闭

  1. 查看PID
ps -ef | grep vlmcsd-x64-musl-static    #请替换对应文件名
  1. 关闭
#19605替换为上个步骤显示的进程ID
kill -9 19605

激活

需求

  1. Web服务器(Apache或Nginx)
  2. PHP支持(推荐7.0+)
  3. 开启网址重写并设置规则

网址重写

  • Apache放置在根目录下.htaccess文件
RewriteEngine On 
RewriteBase / 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME}.php -f 
RewriteRule ^(.+)$ /$1.php [L,QSA]
  • Nginx规则添加到对应的conf文件
location / {
  if (!-e $request_filename){
    rewrite ^(.+)$ /$1.php break;
  }
}

上传源码

  1. 打开kms.php修改KMS服务器地址

  2. 将index.html、kms.php、clean.php上传到网页目录(Apache需要将.htaccess上传至网站根目录)

  • 英文版请使用index_en.html作为index.html

完成!Have a good time!

更新

  • 2019.1.18 将Keys放到网页前端,使后端更加简洁。keys来自微软网站

English

KMS activation server and generate a key activation script Online

Setup

Take CentOS system as example

  1. Download"kms.tar.gz" to the sever and unzip
wget https://github.com/lichenzero/kms_server_webui/raw/master/kms.tar.gz
tar xzf kms.tar.gz
  1. Check sever CPU platform
cat /proc/cpuinfo
  1. Enter the corresponding catalog and run the activation server
  • Notice: You need to choose the corresponding binary files need to be selected according to the CPU platform, which is used here."vlmcsd-x64-musl-static"
cd binaries/Linux/intel/static
./vlmcsd-x64-musl-static
  • If you want to use the firewalld, you need to add 1688(TCP) port
firewall-cmd --zone=public --add-port=1688/tcp --permanent #add
firewall-cmd --reload   #reload to valid

Exit

  1. Check PID
ps -ef | grep vlmcsd-x64-musl-static    #please replace corresponding file name
  1. Exit
#19605 replace to the process shown in the previous stepID
kill -9 19605

Activation

Requirement

  1. Web sever(Apache or Nginx)
  2. PHP support(Recommend 7.0+)
  3. Your URL rewrite and set the rules is available

Rewrite URL

  • Place Apache in the root directory .htaccess file
RewriteEngine On 
RewriteBase / 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME}.php -f 
RewriteRule ^(.+)$ /$1.php [L,QSA]
  • Nginx rules add to corresponding conf files
location / {
  if (!-e $request_filename){
    rewrite ^(.+)$ /$1.php break;
  }
}

Upload source code

  1. Open kms.php and change KMS sever URL

  2. Upload index.html、kms.php、clean.php to web sever root directory(Apache need to upload .htaccess to the web sever root directory)

  • Englishe version please use index_en.html as index.html

Finished!Have a good time!

Update

  • 2019.1.18 Place Keys in the onstage to make the back-end more concise。keys FromMicrosoft website

kms-server-webui's People

Contributors

d3coding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kms-server-webui's Issues

nginx伪静态错误,宝塔

nginx: [emerg] invalid condition "%" in /www/server/panel/vhost/rewrite/kms.wintsa.cn.conf:4
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
how to do.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.