0
点赞
收藏
分享

微信扫一扫

Cesium加载geoserver发布的arcgis切片 4326坐标系

影子喵喵喵 03-01 12:00 阅读 2

文章目录

创建服务

  1. 将服务文件上传到 /home/mes/api-mes-dev, 其他服务修改对应的目录
  2. 在 /usr/lib/systemd/system/ 创建 mesapi-dev.service, 其他服务修改对应文件名
[Unit]
Description=mesapi-dev service

[Service]
WorkingDirectory=/home/mes/api-mes-dev
ExecStart=/usr/bin/dotnet /home/mes/api-mes-dev/WebApi.dll --urls "http://*:10300"
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=mesapi-dev
User=root
# Development开发环境,Production生产环境
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false

[Install]
WantedBy=multi-user.target

启用服务

systemctl enable mesapi.service

启动 & 重启服务

systemctl start mesapi.service
systemctl restart mesapi.service

查看服务状态

// 查看服务状态
systemctl status mesapi.service

// 查看端口占用
netstat -tnpl|grep 10300

问题排查

// 直接使用命令启动
 /usr/bin/dotnet /home/mes/api-mes-dev/JZ.IMS.WebApi.dll --urls "http://*:10300"

访问: http://xxxxxx:10300 查看swagger

举报

相关推荐

0 条评论