-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module version="4"> | ||
<component name="AdditionalModuleElements"> | ||
<content url="file://$MODULE_DIR$" dumb="true"> | ||
<excludeFolder url="file://$MODULE_DIR$/out" /> | ||
</content> | ||
</component> | ||
</module> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
# LyMbl_AliyunDDNS_Java | ||
|
||
aliyun 服务器的 DDNS Java 软件,可以实现自动获取 ipv4 和 ipv6 公网 然后在阿里云进行 ddns 操作! | ||
|
||
## 启动方法 | ||
|
||
> 您需要下载和安装 aliyun 的客户端软件哦! | ||
```shell | ||
java -jar ./LyMbl_AliyunDDNS_Java.jar [日志目录] [动态更新DNS间隔(ms)] [需要被动态更新的子域名(如 www)] [需要被动态更新的顶级域名(如 lingyuzhao.top)] | ||
``` | ||
|
||
## 启动示例 | ||
|
||
在这里我们展示了部分日志,且对其中的数据进行了脱敏,您启动之后看到类型下面的日志,则代表成功运行了! | ||
|
||
``` | ||
# 这代表 以当前的 logs 目录为日志文件存储目录,并且每 3600000 ms 更新一次,子域名为 ***,顶级域名为 ********** | ||
root@gust-desktop:/opt/app/LyMbl_DDNS_Java# java -jar ./LyMbl_AliyunDDNS_Java.jar ./logs 3600000 *** ********** | ||
十一月 12, 2024 10:53:55 下午 top.lingyuzhao.lyMbl.ddns.aliyun.LyMbl_DDNS_Java main | ||
信息: 创建日志目录成功! | ||
十一月 12, 2024 10:53:56 下午 top.lingyuzhao.lyMbl.ddns.aliyun.DDNSManager lambda$initIp$0 | ||
信息: RR: lsb value: *********** | ||
十一月 12, 2024 10:53:56 下午 top.lingyuzhao.lyMbl.ddns.aliyun.DDNSManager lambda$initIp$0 | ||
信息: 初始化 ipv6: ************ | ||
十一月 12, 2024 10:53:56 下午 top.lingyuzhao.lyMbl.ddns.aliyun.DDNSManager lambda$initIp$0 | ||
信息: RR: *** value: ************ | ||
十一月 12, 2024 10:53:56 下午 top.lingyuzhao.lyMbl.ddns.aliyun.DDNSManager lambda$initIp$0 | ||
信息: 初始化 ipv4: ************ | ||
十一月 12, 2024 10:53:56 下午 top.lingyuzhao.lyMbl.ddns.aliyun.DDNSManager start | ||
信息: DDNS running updateTimeMS=3600000 | ||
十一月 12, 2024 10:53:57 下午 top.lingyuzhao.lyMbl.ddns.aliyun.DDNSManager updateIp | ||
信息: DDNS update type: A ip: ************ same with last | ||
...... | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.aliyun</groupId> | ||
<artifactId>LyMbl_AliyunDDNS_Java</artifactId> | ||
<version>1.0.0</version> | ||
<packaging>jar</packaging> | ||
<name>LyMbl_DDNS_Java</name> | ||
<description>Alibaba Cloud SDK Code Sample for Java | ||
</description> | ||
<developers> | ||
<developer> | ||
<id>aliyundeveloper</id> | ||
<name>Aliyun SDK</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
</developers> | ||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>sonatype-nexus-snapshots</id> | ||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>sonatype-nexus-staging</id> | ||
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>io.github.BeardedManZhao</groupId> | ||
<artifactId>zhao-utils</artifactId> | ||
<version>1.2.20241112</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.alibaba.fastjson2</groupId> | ||
<artifactId>fastjson2</artifactId> | ||
<version>2.0.30</version> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<source>8</source> | ||
<target>8</target> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest-Version: 1.0 | ||
Main-Class: top.lingyuzhao.lyMbl.ddns.aliyun.LyMbl_DDNS_Java | ||
|