skyeyesystem/README.md
longguancheng 83690ce049 fix readme
2026-02-05 13:59:54 +08:00

139 lines
3.8 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Introduction
skyeye是一个用来规划无人机航线并控制无人机按规定航线飞行并采集处理雷达负载数据的软件。
# Prerequistites
## 一、 安装openjdk11
### 1.1 在官网下载
Adoptium推荐:https://adoptium.net/temurin/releases/?version=11
### 1.2 配置环境变量(关键)
```
1⃣ 打开环境变量
此电脑 → 右键 → 属性
→ 高级系统设置
→ 环境变量
2⃣ 配置 JAVA_HOME决定默认 JDK
如果你想默认用 JDK 11
JAVA_HOME = C:\Program Files\Java\jdk-11.0.10 这是举例需要填你的jdk路径
如果你想默认用 JDK 8
JAVA_HOME = C:\Program Files\Java\jdk1.8.0_361
👉 只保留一个 JAVA_HOME
3⃣ 配置 PATH非常重要
在 Path 里,只保留这一条:
%JAVA_HOME%\bin
⚠️ 删除这些常见“坑”:
直接写死的
C:\Program Files\Java\jdk1.8...\bin
C:\Program Files\Java\jdk-11...\bin
多个 Java bin 同时存在
4⃣ 验证
新开一个 cmd
java -version
javac -version
看到java version "11.x.x"
说明成功 🎉
```
## 二、 安装配置mysql 8.0
## 三、安装redis 6.x/7.x7.4不可)
### 3.1 安装包
安装包在飞书云盘-技术资料-Redis-安装包
Redis-7.2.12-Windows-x64-cygwin-with-Service.zip
如果你希望 Redis 可以注册为 Windows 服务 自动启动,同时不介意依赖 Cygwin
Redis-7.2.12-Windows-x64-cygwin.zip 只想运行 Redis临时用不需要服务启动
修改redis配置C:\Program Files\Redis\redis.windows.conf
### 3.2 安装步骤
```
解压
D:\Redis\Redis-7.2.12\
启动 Redis Server 临时运行
CMD 进入目录cd D:\Redis\Redis-7.2.12
redis-server.exe redis.windows.conf
测试连接
redis-cli.exe ping
返回 PONG 即启动成功
注册为 Windows 服务(可选,管理员权限 CMD
redis-server.exe --service-install redis.windows.conf
redis-server.exe --service-start
这样 Redis 会随 Windows 自动启动
停止服务:
redis-server.exe --service-stop
卸载服务:
redis-server.exe --service-uninstall
```
## 四、安装node.js
## 五、安装python 3.13
官网下载 https://www.python.org/downloads/release/python-31311/
# 启动后端工程
## 1. Project->sdk->java 11
## 2. 编译安装library下的所有工程
## 3. 编译安装skyeye-common-extend和skyeye-common-generator
## 4. 安装library下的opencv库
## 5. 执行resource目录下的db.sql创建数据库
## 6. 配置application-dev.yml中的数据源
# 服务启动顺序
## 1. redis服务
## 2. skyeye-service-py下的python服务
## 3. skyeye-service-manager
# 启动前端
## 1. 在frontend目录中执行
```
npm install
npm install --save-dev cross-env
npx update-browserslist-db@latest
在 package.json
"serve": "cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
```
## 2. 拷贝resource目录中的dt-sdk到node-modules目录
## 3. 编译前端代码
```
# npm run serve
```
## 4. 在浏览器中打开主页localhost:8080, 默认用户名密码为admin/123
# 前端nginx启动
## 1.执行build
PS D:\IdeaProjects\skyeyesystem\frontend\Skyeye-sys-ui> npm run build
出现错误的执行
PS D:\IdeaProjects\skyeyesystem\frontend\Skyeye-sys-ui> npm install babel-plugin-transform-remove-console --save-dev
出现版本node.js太大问题
1.降低版本
2."scripts": {
"serve": "cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build",
"lint": "vue-cli-service lint"
}
## 2. 拷贝resource目录中的dt-sdk到node-modules目录
## 3.继续build
PS D:\IdeaProjects\skyeyesystem\frontend\Skyeye-sys-ui> npm run build
## 4.然后到nginx-conf目录下修改配置文件nginx.conf的启动路径
root "D:/IdeaProjects/skyeyesystem/frontend/Skyeye-sys-ui/dist";
## 5.回到nginx目录下cmd 执行.\nginx.exe