-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--ci
- Loading branch information
Showing
3 changed files
with
64 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: '[Windows] vlmcsd' | ||
created_at: 2024-11-10 12:00:08 | ||
tag: ["Windows", "kms","vlmcsd"] | ||
toc: true | ||
--- | ||
|
||
# Windows | ||
|
||
<https://github.com/Wind4/vlmcsd> | ||
|
||
```sh | ||
# 服务端 -s 注册为windows服务 -l 日志 | ||
vlmcsd-Windows-x64.exe -s -l c:\_vlmcsd\server.log | ||
|
||
# 客户端-查看支持的版本 | ||
vlmcs-Windows-x64.exe -x | ||
|
||
# 开放端口 | ||
netsh advfirewall firewall add rule name=vlmcsd1688 dir=in action=allow protocol=TCP localport=1688 | ||
``` | ||
|
||
# Docker | ||
```sh | ||
docker run -d -p 1688:1688 --restart=always --name vlmcsd ghcr.io/linianhui/vlmcsd:1113-2020-03-28 | ||
``` | ||
|
||
# Openwrt | ||
|
||
```sh | ||
vlmcsd-mips32el-openwrt-uclibc-static | ||
``` | ||
|
||
{{<highlight-file path="vlmcsd.init" lang="sh">}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh /etc/rc.common | ||
|
||
|
||
# openwrt | ||
# /etc/init.d/vlmcsd | ||
# chmod +x /etc/init.d/vlmcsd | ||
# /etc/init.d/vlmcsd enable | ||
# /etc/init.d/vlmcsd start | ||
# /etc/init.d/vlmcsd stop | ||
# /etc/init.d/vlmcsd reload | ||
|
||
START=98 | ||
|
||
SERVICE_WRITE_PID=1 | ||
SERVICE_DAEMONIZE=1 | ||
|
||
start() { | ||
service_start /usr/bin/vlmcsd | ||
} | ||
|
||
stop() { | ||
service_stop /usr/bin/vlmcsd | ||
} | ||
|
||
reload() { | ||
service_reload /usr/bin/vlmcsd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters