
vim/usr/lib/systemd/system/gatewayd.service
[Unit]
Description=GatewaySystemService
After=network.target
[Service]
WorkingDirectory=/gateway/netcore/IOTCS
Type=simple
User=root
Group=root
ExecStart=/gateway/sdk/dotnetIOTCS.EdgeGateway.Server.dll
Restart=always
RestartSec=10
SyslogIdentifier=dotnet-zl
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
[Install]
WantedBy=multi-user.target
实际生产环境中请使用OPCUA基金会授权
dockerpulliotcs/igateway:0.6
dockerrun--restartalways--nameiigateway-dit-p8001:8001-p9001:9001iotcs/igateway:0.6
