|
4 日 前 | |
---|---|---|
cmd | 2 週間 前 | |
common | 6 日 前 | |
config | 1 週間 前 | |
logger | 2 週間 前 | |
models | 4 日 前 | |
rpc_idl @ 0fc0d7bbb6 | 6 日 前 | |
service | 6 日 前 | |
static | 4 日 前 | |
.gitignore | 2 週間 前 | |
.gitmodules | 2 週間 前 | |
Makefile | 2 週間 前 | |
README.md | 2 週間 前 | |
go.mod | 1 週間 前 | |
go.sum | 1 週間 前 | |
main.go | 2 週間 前 |
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