Compare commits

..

No commits in common. 'a0d588339b463f747ef42046455db15e105e9b51' and '2395698807dc7666c6f6c524495f59e5922348ca' have entirely different histories.

  1. 9
      InstallManual.md
  2. 2
      Script/Model/ModelSerialTest.cs
  3. 6
      SystemCtl/TrackTarget.service
  4. 2
      SystemCtl/install.sh

9
InstallManual.md

@ -38,12 +38,6 @@ Version`V0.1`试行版 @@ -38,12 +38,6 @@ Version`V0.1`试行版
默认安装环境已完成
更新apt
```shell
sudo apt update
```
### 2.1 安装openssh-server(镜像可能自带)
```shell
@ -130,13 +124,12 @@ sudo ufw allow <port/service> @@ -130,13 +124,12 @@ sudo ufw allow <port/service>
### 3.1 克隆项目
```shell
git clone http://124.222.119.133:3000/petejk/TargetService
git clone http://byserver:3000/TargetMachine/TrackTargetService
```
### 3.2 发布release包
```shell
cd TargetService
dotnet publish --configuration Release
```

2
Script/Model/ModelSerialTest.cs

@ -12,7 +12,7 @@ public class ModelSerialTest : EGModule,IEGFramework @@ -12,7 +12,7 @@ public class ModelSerialTest : EGModule,IEGFramework
public const string PORT_WIN = "COM2";
public bool IsLinux = true;
public bool IsLinux = false;
public string TestPort { set; get; } = PORT_LINUX;
public string ColorSerialPort { set; get; } = "";

6
SystemCtl/TrackTarget.service

@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
[Unit]
Description=TargetService
Description=TrackTargetService
After=network.target
[Service]
ExecStart=/home/u/TargetService/bin/Release/net8.0/TargetService
WorkingDirectory=/home/u/TargetService
ExecStart=/home/u/TrackTargetService/bin/Release/net8.0/publish/TrackTargetService
WorkingDirectory=/home/u/TrackTargetService
User=u
Group=dialout
Restart=always

2
SystemCtl/install.sh

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#!/bin/bash
# 服务文件名
SERVICE_FILE="Target.service"
SERVICE_FILE="TrackTarget.service"
# 检查当前目录下是否存在服务文件
if [ ! -f "$SERVICE_FILE" ]; then

Loading…
Cancel
Save