安装依赖:
pip install -r requirements.txt
运行测试:
python test_db_connection.py
详细部署说明请参考 README_CENTOS.md
快速部署(使用脚本):
chmod +x deploy_centos.sh
./deploy_centos.sh
或手动安装:
python3 -m pip install -r requirements.txt --user
python3 test_db_connection.py
脚本会尝试连接MySQL数据库,如果连接成功会显示:
如果连接失败,会显示详细的错误信息,方便排查问题。