diff --git a/readme.md b/readme.md index a0ede69b20ec81a56e00a299b741704dde276165..d923f1946a72b28bdbcc85180f2d99c403f7b0c6 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 316079dd129fd47278f953ddb95bf8477b1e9b86..dbb9dbbcce4bdf91459c7ead6eb682a43864027b 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 f9a890d8a9a72cf116cc8b2e33b5f7a0b1f77d43..1a4221cc2bc1c1e21ac00e9a5eaa88b9d57c15d3 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 90bbb03e953ec8d7e98f458b5e3a793409a34155..0ecb6f79e718716e3ad87ca8163a3afc81921007 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确定