|
19 ساعت پیش | |
---|---|---|
cmd | 1 هفته پیش | |
common | 1 روز پیش | |
config | 1 روز پیش | |
logger | 1 هفته پیش | |
models | 19 ساعت پیش | |
rpc_idl @ c7adaf6cbe | 1 روز پیش | |
service | 19 ساعت پیش | |
static | 21 ساعت پیش | |
.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