You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| global | 3 years ago | |
| util | 3 years ago | |
| .gitignore | 3 years ago | |
| config.json | 3 years ago | |
| ddns_test.go | 3 years ago | |
| go.mod | 3 years ago | |
| main.go | 3 years ago | |
| readme.md | 3 years ago | |
readme.md
DDNS for aliyun
build
cd /root
rm -rf ddns
git clone https://git.sre.ink/go/ddns.git
cd ddns
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go build -v -a -o ddns main.go
rm -rf /usr/bin/ddns
mv ddns /usr/bin/
ddns
crontab
*/10 * * * * /usr/bin/ddns
build on arm n1
cd /root
rm -rf ddns
git clone https://git.sre.ink/go/ddns.git
cd ddns
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go build -v -a -o ddns main.go
rm -rf /usr/bin/ddns
mv ddns /usr/bin/
ddns