From a65a8d868b17309b8cd0546f9e7a0775531ec0c3 Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Fri, 2 Sep 2022 12:35:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=90=AD=E5=BB=BA=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 2 ++ super/sflask.conf | 7 ++++--- super/stermux.conf | 4 ++-- ...260\346\220\255\345\273\272\350\257\264\346\230\216.md" | 6 ++++++ 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index a0ede69..d923f19 100644 --- a/readme.md +++ b/readme.md @@ -100,6 +100,8 @@ [sqlite3使用教程](https://m.yisu.com/zixun/375448.html) [远程网站](http://cms.nokia.press/index) [本地网站](http://192.168.10.99:5705/index) +[gevent下载地址](https://pypi.org/project/gevent/#files) +[aarch64的cp310](http://pan.nokia.press/d/hiker/whl/gevent-21.12.0-cp310-cp310-linux_aarch64.whl) [comment]: <> ([需要安装nodejs](https://registry.npmmirror.com/binary.html?path=node/latest-v14.x/)) [本地服务配置地址](http://localhost:5705/config/0) diff --git a/super/sflask.conf b/super/sflask.conf index 316079d..dbb9dbb 100644 --- a/super/sflask.conf +++ b/super/sflask.conf @@ -9,9 +9,10 @@ logfile=logs/supervisord.log logfile_maxbytes=50MB [supervisorctl] [program:flask_dr_py] -# command=gunicorn -w 5 --threads=2 -b 0.0.0.0:5705 app:app ; 被监控的进程路径 worker建议的最大并发数是(2*CPU) +1 -command=gunicorn -w 5 -b 0.0.0.0:5705 app:app ; 被监控的进程路径 worker建议的最大并发数是(2*CPU) +1 -;command=gunicorn --worker-class=gevent --worker-connections=1000 -w 5 -b 0.0.0.0:5705 app:app +# command=gunicorn -w 5 --threads=2 -b 0.0.0.0:5705 app:app ;被监控的进程路径 +# command=gunicorn -w 5 -b 0.0.0.0:5705 app:app ;被监控的进程路径 +# command=gunicorn --worker-class=gevent --worker-connections=1000 -w 5 -b 0.0.0.0:5705 app:app ;被监控的进程路径 worker建议的最大并发数是(2*CPU) +1 +command=gunicorn -w 5 --worker-class=sync --preload -b 0.0.0.0:5705 app:app ;被监控的进程路径 directory=/root/sd/pywork/dr_py ; 执行前要不要先cd到目录去,一般不用 user=root ;执行者角色 priority=1 ;数字越高,优先级越高 diff --git a/super/stermux.conf b/super/stermux.conf index f9a890d..1a4221c 100644 --- a/super/stermux.conf +++ b/super/stermux.conf @@ -10,8 +10,8 @@ logfile_maxbytes=50MB [supervisorctl] [program:flask_dr_py] # command=gunicorn -w 5 --threads=2 -b 0.0.0.0:5705 app:app ;被监控的进程路径 -command=gunicorn -w 5 -b 0.0.0.0:5705 app:app ;被监控的进程路径 -;command=gunicorn --worker-class=gevent --worker-connections=1000 -w 5 app:app ;被监控的进程路径 +command=gunicorn -w 5 --worker-class=sync --preload -b 0.0.0.0:5705 app:app ;被监控的进程路径 +# command=gunicorn --worker-class=gevent --worker-connections=1000 -w 5 app:app ;被监控的进程路径 directory=/sdcard/Download/pywork/dr_py ; 执行前要不要先cd到目录去,一般不用 user=u0_a414 ;执行者角色 priority=1 ;数字越高,优先级越高 diff --git "a/\345\256\211\345\215\223\346\234\254\345\234\260\346\220\255\345\273\272\350\257\264\346\230\216.md" "b/\345\256\211\345\215\223\346\234\254\345\234\260\346\220\255\345\273\272\350\257\264\346\230\216.md" index 90bbb03..0ecb6f7 100644 --- "a/\345\256\211\345\215\223\346\234\254\345\234\260\346\220\255\345\273\272\350\257\264\346\230\216.md" +++ "b/\345\256\211\345\215\223\346\234\254\345\234\260\346\220\255\345\273\272\350\257\264\346\230\216.md" @@ -4,6 +4,12 @@ ##### [加群链接生成器](https://qun.qq.com/join.html) ##### [git图标生成器](https://github.com/badges/shields) #### 教程开始 +###### 特殊-termux直装(由于termux的Python最低版本是3.10,会导致此项目无法获取首页推荐,但是其他性能方面非常牛叉) +```shell +apt install libxml2 libxslt -y +apt install python3 +``` +#### termux容器ubutnu1804内安装(此方法请无视上方代码) 1. 准备工作-termux通过tome搭建完整的ubuntu1804系统(基于proot容器技术) ZeroTermux左侧边栏按住手指右滑出现操作面板 点击面板的切换源-北京源并确定,之后出现的任何提示都回车或者y确定 -- GitLab