DR Protocol Server

shao 09b57c5394 first commit 1 week ago
cmd 09b57c5394 first commit 1 week ago
common 09b57c5394 first commit 1 week ago
config 09b57c5394 first commit 1 week ago
logger 09b57c5394 first commit 1 week ago
models 09b57c5394 first commit 1 week ago
rpc_idl @ 41e78dbf6c 09b57c5394 first commit 1 week ago
service 09b57c5394 first commit 1 week ago
static 09b57c5394 first commit 1 week ago
.gitignore 09b57c5394 first commit 1 week ago
.gitmodules 09b57c5394 first commit 1 week ago
Makefile 09b57c5394 first commit 1 week ago
README.md 09b57c5394 first commit 1 week ago
go.mod 09b57c5394 first commit 1 week ago
go.sum 09b57c5394 first commit 1 week ago
main.go 09b57c5394 first commit 1 week ago

README.md

DR Protocol Server

env

  • golang 1.24
  • postgres14

run

go run main.go run

deploy

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

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

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