README.md 504 B

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