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.
|
|
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
【渔业养殖过程中水质指标自动采集及查询系统 - 启动指南】 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/:实例配置目录