2024-03-18 10:56:51 +08:00
2024-03-12 10:58:33 +08:00
2024-03-12 10:58:33 +08:00
2024-03-12 10:58:33 +08:00
2024-03-12 10:58:33 +08:00
2024-03-12 10:58:33 +08:00
2024-03-12 10:58:33 +08:00
2024-03-12 10:58:33 +08:00

nms_nbi

网络管理系统-北向接口

redis 配置文件相关

# IP绑定与端口
bind 0.0.0.0
port 6379
# 安全设置
protected-mode yes
requirepass ""
# 从节点只能读取数据,不能直接写入数据
slaveof 192.168.114.114 6379
# 允许从节点进行读写操作
replica-read-only no

开发

# 安装 Go版本 1.21.6 后进入项目根目录
cd ./restagent
# 下载依赖
go mod download

# 调试启动
go run restagent.go -c ./restagent/etc/restconf.yaml --env local

# 打包命名 restagent
go build -ldflags="-s -w" -o restagent

打包

go env -w GOOS=linux

go env -w GOOS=windows

go build -o restagent -v -ldflags "-X 'nms_nbi/lib/global.Version=2.2311.8' -X 'nms_nbi/lib/global.BuildTime=`date`' -X 'nms_nbi/lib/global.GoVer=`go version`'"
Description
中国星网网络创新研究院-北向模块后端
Readme 190 MiB
Languages
Go 99%
Shell 1%