|
há 1 semana atrás | |
---|---|---|
cmd | há 1 semana atrás | |
common | há 1 semana atrás | |
config | há 1 semana atrás | |
logger | há 1 semana atrás | |
models | há 1 semana atrás | |
rpc_idl @ 41e78dbf6c | há 1 semana atrás | |
service | há 1 semana atrás | |
static | há 1 semana atrás | |
.gitignore | há 1 semana atrás | |
.gitmodules | há 1 semana atrás | |
Makefile | há 1 semana atrás | |
README.md | há 1 semana atrás | |
go.mod | há 1 semana atrás | |
go.sum | há 1 semana atrás | |
main.go | há 1 semana atrás |
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