Mono后台服务设计

解决的问题

mono-service 无法满足要求,启动过程老是出问题

解决方案

1. 使用shell脚本完成后台进程的启动工作!

.sh文件内容

mono  /usr/myfoder/camtest/Debug/DREQPAPP.exe >/dev/null 2>&1 &

运行.sh 文件

sh mytest.sh

2. 使用nohup后台挂起线程

nohup DREQPAPP.exe &

大道至简

posted @ 2022-12-03 09:09  星火燎猿*  阅读(22)  评论(0)    收藏  举报