docs: 更新说明文件
This commit is contained in:
28
README.md
28
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`'"
|
||||
|
||||
```
|
||||
|
||||
## 安装
|
||||
|
||||
Reference in New Issue
Block a user