You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
贺书英 9769eb5c7e
提交注释
2 months ago
..
.idea 加了注释的代码 3 months ago
app 加了注释的代码 3 months ago
yangzhiapp-env 加了注释的代码 3 months ago
.gitignore 加了注释的代码 3 months ago
LICENSE 加了注释的代码 3 months ago
config.py 加了注释的代码 3 months ago
create_admin.py 加了注释的代码 3 months ago
create_alarm_data.py 加了注释的代码 3 months ago
create_history_data.py 提交注释 2 months ago
create_structure.py 提交注释 2 months ago
create_test_data.py 加了注释的代码 3 months ago
readme.txt 加了注释的代码 3 months ago
requirements.txt 加了注释的代码 3 months ago
run.py 加了注释的代码 3 months ago
信息.txt 加了注释的代码 3 months ago

readme.txt

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

【渔业养殖过程中水质指标自动采集及查询系统 - 启动指南】

1. 环境准备
   - 安装Python 3.8或以上版本
   - 安装MySQL 8.0或以上版本
   - 配置MySQL
     * 用户名root
     * 密码123456
     * 端口3306

2. 安装依赖
   打开命令提示符,进入项目目录,执行:
   pip install -r requirements.txt

3. 数据库初始化
   依次执行以下命令:
   - python create_structure.py创建数据库结构和管理员账号
   - python create_history_data.py创建测试监控点和历史数据
   - python create_alarm_data.py创建测试报警规则和记录

4. 启动系统
   执行命令python run.py
   访问地址http://localhost:5000

5. 默认账号
   管理员账号:
   - 用户名admin
   - 密码123456
   
   测试账号:
   - 用户名test
   - 密码123456

6. 注意事项
   - 确保MySQL服务已启动
   - 确保5000端口未被占用
   - 如遇数据库连接错误检查config.py中的数据库配置
   - 建议使用Chrome或Firefox浏览器访问

7. 目录结构说明
   - app/:应用主目录
   - app/static/:静态文件目录
   - app/templates/:模板文件目录
   - app/models/:数据模型目录
   - app/routes/:路由控制目录
   - logs/:日志文件目录
   - instance/:实例配置目录