01 2021 档案

摘要:输出到控制台 nginx cd nginx/logs tail -f access.log liunx/docker 修改镜像源 pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ pip config se 阅读全文
posted @ 2021-01-27 10:10 汪丛兴 阅读(105) 评论(0) 推荐(0)
摘要:项目本身存在大量并发...点击右上角x,不要犹豫直接go重构 如果没有太多的并发,可以考虑通过uwsgi方式提升项目性能,会提升3-5倍 压测工具 mac自带的ab其实就是ApacheBench工具 常用命令 ab -h Usage: ab [options] [http[s]://]hostnam 阅读全文
posted @ 2021-01-24 17:00 汪丛兴 阅读(400) 评论(0) 推荐(0)
摘要:1. 去除list空元素 list(filter(lambda x: x, "a;b;c".split(';'))) 阅读全文
posted @ 2021-01-19 17:01 汪丛兴 阅读(50) 评论(0) 推荐(0)
摘要:https://python3-cookbook.readthedocs.io/zh_CN/latest/c13/p15_luanch_a_web_browser.html 阅读全文
posted @ 2021-01-13 16:08 汪丛兴 阅读(171) 评论(0) 推荐(0)
摘要:背景 项目投产前准备步骤 1.新建虚拟环境 2.安装nginx 配置wsgi 3.启动应用服务器(建议80/443)端口 4.配置web服务器 5.配置域名 django took too long to shut down and was killed 报错 症状: 项目可以正常启动,每次只能处理 阅读全文
posted @ 2021-01-08 09:47 汪丛兴 阅读(1894) 评论(0) 推荐(0)
摘要:描述待添加 #pip install pycryptodome == 3.9.9 from Crypto.PublicKey import RSA from Crypto.Random import get_random_bytes from Crypto.Cipher import AES, PK 阅读全文
posted @ 2021-01-07 09:30 汪丛兴 阅读(1194) 评论(0) 推荐(0)