|
hace 2 días | |
---|---|---|
cmd | hace 1 semana | |
common | hace 2 días | |
config | hace 2 días | |
logger | hace 1 semana | |
models | hace 2 días | |
rpc_idl @ c7adaf6cbe | hace 3 días | |
service | hace 2 días | |
static | hace 2 días | |
.gitignore | hace 1 semana | |
.gitmodules | hace 1 semana | |
Makefile | hace 1 semana | |
README.md | hace 1 semana | |
go.mod | hace 5 días | |
go.sum | hace 5 días | |
main.go | hace 1 semana |
DR Protocol Server
go run main.go run
# 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