|
il y a 2 jours | |
---|---|---|
cmd | il y a 1 semaine | |
common | il y a 2 jours | |
config | il y a 2 jours | |
logger | il y a 1 semaine | |
models | il y a 2 jours | |
rpc_idl @ c7adaf6cbe | il y a 2 jours | |
service | il y a 2 jours | |
static | il y a 2 jours | |
.gitignore | il y a 1 semaine | |
.gitmodules | il y a 1 semaine | |
Makefile | il y a 1 semaine | |
README.md | il y a 1 semaine | |
go.mod | il y a 4 jours | |
go.sum | il y a 4 jours | |
main.go | il y a 1 semaine |
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