|
vor 20 Stunden | |
---|---|---|
cmd | vor 1 Woche | |
common | vor 1 Tag | |
config | vor 1 Tag | |
logger | vor 1 Woche | |
models | vor 20 Stunden | |
rpc_idl @ c7adaf6cbe | vor 1 Tag | |
service | vor 20 Stunden | |
static | vor 21 Stunden | |
.gitignore | vor 1 Woche | |
.gitmodules | vor 1 Woche | |
Makefile | vor 1 Woche | |
README.md | vor 1 Woche | |
go.mod | vor 3 Tagen | |
go.sum | vor 3 Tagen | |
main.go | vor 1 Woche |
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