腾讯云私有网络参数模板 IP 地址自动更新器,支持服务,支持自动安装为 Windows 服务。
- Download the latest release or clone and build it.
- Edit the
appsettings.json
file, see app settings below. - Move the executable file to a directory which you want and will not be moved or deleted, for example
C:\Program Files\LC\TencentCloudVPCTemplateUpdater\
. - Put the
appsettings.json
file in the same directory as the executable file. - Open PowerShell or CMD as administrator in the directory, and run
.\TencentCloudVPCTemplateUpdater.exe install
to install the Windows service.
- Clone and build it.
- Edit the
appsettings.json
file, see app settings below. - Move the executable file to a directory which you want and will not be moved or deleted, for example
/usr/local/bin/TencentCloudVPCTemplateUpdater
. - Put the
appsettings.json
file in the same directory as the executable file. - Create a service by yourself, and run the executable file in the service.
.\TencentCloudVPCTemplateUpdater.exe install
- Install the Windows service (Administrator permission required)..\TencentCloudVPCTemplateUpdater.exe uninstall
- Uninstall the Windows service (Administrator permission required)..\TencentCloudVPCTemplateUpdater.exe start
- Start the Windows service (Administrator permission required)..\TencentCloudVPCTemplateUpdater.exe stop
- Stop the Windows service (Administrator permission required)..\TencentCloudVPCTemplateUpdater.exe restart
- Restart the Windows service (Administrator permission required)..\TencentCloudVPCTemplateUpdater.exe status
- Show the Windows service status (Administrator permission is not needed).
Key | Value |
---|---|
Secret:Id | TencentCloud SecretId |
Secret:Key | TencentCloud SecretKey |
Region | TencentCloud Region |
TemplateIds:Mode | Templates updating mode |
TemplateIds:Single | Template Id, for single mode |
TemplateIds:V4 | TemplateV4 Id, for multi mode |
TemplateIds:V6 | TemplateV6 Id, for multi mode |
Mode | Description |
---|---|
0 | Single template, auto version (Recommended). |
1 | Multiple templates, auto version, keep the other. |
2 | Multiple templates, auto version, set the other loopback. |
3 | Multiple templates, IPv6 only, keep IPv4. |
4 | Multiple templates, IPv6 only, set IPv4 loopback. |
5 | Multiple templates, IPv4 only, keep IPv6. |
6 | Multiple templates, IPv4 only, set IPv6 loopback. |
-1 | Disable updater. |