摘要: 一、材料 mongodb:6.0.13 mongosh:2.1.5 openssl-1.1.1w 系统:redhat4.8 二、模式 PDA: 一个主节点(Primary)、 一个延迟副节点(Secondary)、一个仲裁节点(arbiter) PDA 主节点 延迟副节点 仲裁节点 名称 Prima 阅读全文
posted @ 2024-03-08 15:39 IT树 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 方式 1:GitHub Python 源代码可以在 GitHub 上方便的获取,执行: git clone https://github.com/python/cpython.git git checkout v3.7.0 即可获取 Python 3.7.0 版本的代码。 方式 2:Python 官 阅读全文
posted @ 2023-11-01 11:26 IT树 阅读(23) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>文字跑马灯 CSS 阅读全文
posted @ 2023-10-18 11:41 IT树 阅读(72) 评论(0) 推荐(0) 编辑
摘要: pip install ordered-set # 加速编译 pip install nuitka pip install zstandard # onefile时压缩文件 # 打包命令 python -m nuitka --mingw64 --standalone --output-dir=out 阅读全文
posted @ 2023-09-20 19:50 IT树 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 报错信息: (venv) root@VM-8-7-ubuntu:/opt/www/taskPools1# python main.pyTraceback (most recent call last): File "/opt/www/taskPools1/venv/lib/python3.8/sit 阅读全文
posted @ 2023-08-08 12:02 IT树 阅读(110) 评论(0) 推荐(0) 编辑
摘要: http文件服务器 server { listen 81; server_name xx.xx.xx.xx; location / { add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 阅读全文
posted @ 2023-04-17 09:43 IT树 阅读(9) 评论(0) 推荐(0) 编辑
摘要: [uwsgi] wsgi-file=app.py # 应用的主文件 callable=app # 应用中的 flask 实例 chdir=/opt/app # chdir 到给定目录 env= XXX=XXX # 额外的环境变量 # 以下三者任选其一 http=0.0.0.0:5000 # 如果直接 阅读全文
posted @ 2022-09-05 18:51 IT树 阅读(706) 评论(0) 推荐(0) 编辑
摘要: Flask : 2.0.3 Flask-Session: 0.4.0 pymongo : 4.0.1 session:错误信息 TypeError: 'Collection' object is not callable. If you meant to call the 'update' meth 阅读全文
posted @ 2022-02-16 19:12 IT树 阅读(3092) 评论(0) 推荐(0) 编辑
摘要: 1、什么是算法: 计算机解决解决某个问题特定任务的具体实现步骤。 算法是独立解决问题的一种方法和解决思路 2、算法特性: 输入:有0个或者多个参数 输出:至少有一个以上的计算结果, 有穷性:算法在有限的步骤内会自动结束,不会无限循环,并且每一个执行步骤是需要的时间是可接受的 确定性:算法的每一个步骤 阅读全文
posted @ 2022-02-08 16:04 IT树 阅读(316) 评论(0) 推荐(0) 编辑
摘要: ca 阅读全文
posted @ 2021-04-09 18:00 IT树 阅读(117) 评论(0) 推荐(0) 编辑