Browse Source

优化启动服务

master
胡超1 1 year ago
parent
commit
a4216254a8
  1. 18
      CPF_Cef/MainModel.cs

18
CPF_Cef/MainModel.cs

@ -1623,7 +1623,6 @@ namespace AKS.EnterpriseLibrary.WebBrowser
try try
{ {
WebSocketClientWithHeartbeat webSocket = new WebSocketClientWithHeartbeat(); WebSocketClientWithHeartbeat webSocket = new WebSocketClientWithHeartbeat();
Parame.ImgBase64 = ImageBase64; Parame.ImgBase64 = ImageBase64;
var mode = new var mode = new
{ {
@ -2032,12 +2031,12 @@ namespace AKS.EnterpriseLibrary.WebBrowser
{ {
if (true) if (true)
{ {
//启动身份证、签字版、指纹服务 //启动身份证、签字版、指纹服务 nohup ./script.sh &
string commod = "lsof -i:9399"; string commod = "lsof -i:9399";
string zxjg = Bash(commod); string zxjg = Bash(commod);
if (string.IsNullOrEmpty(zxjg)) if (string.IsNullOrEmpty(zxjg))
{ {
commod = "cd /opt/apps/yfzy/bin && ./FiveInchServer-yfzy.sh"; commod = "cd /opt/apps/yfzy/bin && nohup ./FiveInchServer-yfzy.sh &";
Bash(commod); Bash(commod);
} }
} }
@ -2049,7 +2048,7 @@ namespace AKS.EnterpriseLibrary.WebBrowser
string zxjg = Bash(commod); string zxjg = Bash(commod);
if (string.IsNullOrEmpty(zxjg)) if (string.IsNullOrEmpty(zxjg))
{ {
commod = "cd /opt/hCamera && ./start.sh"; commod = "cd /opt/hCamera && nohup ./start.sh &";
Bash(commod); Bash(commod);
//获取设备 //获取设备
GetSnIndex(); GetSnIndex();
@ -2059,6 +2058,17 @@ namespace AKS.EnterpriseLibrary.WebBrowser
EnableDeskImage(1); EnableDeskImage(1);
} }
} }
if (true)
{
//启动双目服务
string commod = "netstat -tuln | grep 22226";
string zxjg = Bash(commod);
if (string.IsNullOrEmpty(zxjg))
{
commod = "cd /data/home/aks/lhtserver/lhtserver && nohup ./LhtCamServer.sh &";
Bash(commod);
}
}
} }
catch { } catch { }
finally { } finally { }

Loading…
Cancel
Save