|
9 小時之前 | |
---|---|---|
cmd | 1 周之前 | |
common | 15 小時之前 | |
config | 15 小時之前 | |
logger | 1 周之前 | |
models | 9 小時之前 | |
rpc_idl @ c7adaf6cbe | 1 天之前 | |
service | 9 小時之前 | |
static | 10 小時之前 | |
.gitignore | 1 周之前 | |
.gitmodules | 1 周之前 | |
Makefile | 1 周之前 | |
README.md | 1 周之前 | |
go.mod | 3 天之前 | |
go.sum | 3 天之前 | |
main.go | 1 周之前 |
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