From c699bf22edc83229487ab35debc063a3f3a52122 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 21 Jun 2024 20:47:47 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 18aa6621..7cd472fd 100644 --- a/README.md +++ b/README.md @@ -18,19 +18,34 @@ bind 0.0.0.0 port 6379 # 安全设置 protected-mode yes -requirepass "" +requirepass "helloearth" +# 查看主备 +info replication # 从节点只能读取数据,不能直接写入数据 +# replicaof是新版本的命令,旧版本是slaveof命令 slaveof 192.168.114.114 6379 +replicaof 192.168.114.114 6379 +masterauth "helloearth" # 允许从节点进行读写操作 replica-read-only no ``` -## 版本发布空间 +## 一些服务器 +```txt +# 版本发布空间 \\192.168.1.205\share\release\omc + +# 研发git 192.168.1.120 altouser/a1t0U53r +# 默认IOS镜像用户和密码 +agtuser/admin123 +manager/admin123 +omcuser/a9tU53r +``` + ## 开发 ```sh @@ -40,7 +55,7 @@ cd ./restagent go mod download # 调试启动 -go run restagent.go -c ./restagent/etc/restconf.yaml --env local +go run restagent.go -c ./etc/restconf.yaml --env local # 打包命名 restagent go build -ldflags="-s -w" -o restagent @@ -53,7 +68,12 @@ go env -w GOOS=linux go env -w GOOS=windows -go build -o restagent -v -ldflags "-X 'be.ems/lib/global.Version=2.2311.8' -X 'be.ems/lib/global.BuildTime=`date`' -X 'be.ems/lib/global.GoVer=`go version`'" +cd ./restagent + +go build -o restagent -v -ldflags="-s -w -X 'be.ems/lib/global.Version=2.240620.1' -X 'be.ems/lib/global.BuildTime=`date`' -X 'be.ems/lib/global.GoVer=`go version`'" + +go build -o crontask -v -ldflags="-s -w -X 'be.ems/lib/global.Version=2.240620.1' -X 'be.ems/lib/global.BuildTime=`date`' -X 'be.ems/lib/global.GoVer=`go version`'" + ``` ## 安装