资源服务

shao 9c53d5a511 submodule update vor 3 Wochen
api e75aba203d rpc_idl vor 3 Wochen
cmd be26042e4a 避免明文存储数据库密码 vor 3 Wochen
common 9ee3578d41 增加日志文件最多保留文件个数配置 vor 3 Wochen
config 9ee3578d41 增加日志文件最多保留文件个数配置 vor 3 Wochen
dto 91fc9d0cbe first commit vor 4 Wochen
logger e75aba203d rpc_idl vor 3 Wochen
models 400350a698 init config_items table vor 4 Wochen
router e75aba203d rpc_idl vor 3 Wochen
rpc_idl @ 798567b8fa 9c53d5a511 submodule update vor 3 Wochen
service 11d58e675e i18n vor 3 Wochen
static 11d58e675e i18n vor 3 Wochen
.gitignore 91fc9d0cbe first commit vor 4 Wochen
.gitmodules e75aba203d rpc_idl vor 3 Wochen
Makefile 400350a698 init config_items table vor 4 Wochen
README.md be26042e4a 避免明文存储数据库密码 vor 3 Wochen
go.mod e75aba203d rpc_idl vor 3 Wochen
go.sum e75aba203d rpc_idl vor 3 Wochen
main.go 91fc9d0cbe first commit vor 4 Wochen

README.md

DR Resource Server

env

  • golang 1.24
  • postgres14

run

go run main.go run

deploy

# vim /etc/systemd/system/resource-server.service
[Unit]
Description=dr resource service
After=network.target
 
[Service]
Type=simple
WorkingDirectory=xxx/DRResourceServer
ExecStart=xxx/DRResourceServer/resource-server run
 
[Install]
WantedBy=multi-user.target

# 重新加载systemd配置
sudo systemctl daemon-load

# 启动服务
sudo systemctl restart resource-server.service