上一页 1 2 3 4 5 6 7 ··· 9 下一页

2021年9月28日

摘要: 1.Nginx添加监控模块 http_stub_status_module 2.在nginx添加配置项 server { listen 80; server_name localhost; location ^/ { rewrite / /status permanent; } location / 阅读全文
posted @ 2021-09-28 09:38 Arron_Ramsey 阅读(20) 评论(0) 推荐(0) 编辑

2021年9月27日

摘要: zabbix4.4监控案例之Nginx监控 阅读全文
posted @ 2021-09-27 11:43 Arron_Ramsey 阅读(35) 评论(0) 推荐(0) 编辑

2021年9月25日

摘要: 实例1:简单实现单个任务多线程 from concurrent.futures import ThreadPoolExecutor, as_completed, ProcessPoolExecutor THREAD_POOL = ThreadPoolExecutor(4) # write为函数名,' 阅读全文
posted @ 2021-09-25 12:06 Arron_Ramsey 阅读(90) 评论(0) 推荐(0) 编辑

2021年9月22日

摘要: 1、缓存 缓存现在几乎是所有中大型网站都在用的必杀技,合理的利用缓存不仅能够提升网站访问速度,还能大大降低数据库的压力。Redis提供了键过期功能,也提供了灵活的键淘汰策略,所以,现在Redis用在缓存的场合非常多。 2、排行榜 很多网站都有排行榜应用的,如京东的月度销量榜单、商品按时间的上新排行榜 阅读全文
posted @ 2021-09-22 09:27 Arron_Ramsey 阅读(32) 评论(0) 推荐(0) 编辑

2021年9月13日

摘要: 阅读全文
posted @ 2021-09-13 14:51 Arron_Ramsey 阅读(57) 评论(0) 推荐(0) 编辑
 
摘要: 一、介绍: APScheduler的全称是Advanced Python Scheduler。它是一个轻量级的 Python 定时任务调度框架。 APScheduler 支持三种调度任务:固定时间间隔,固定时间点(日期),它还支持异步执行、后台执行调度任务。 这里只介绍如何执行调度任务 二、安装: 阅读全文
posted @ 2021-09-13 10:07 Arron_Ramsey 阅读(371) 评论(0) 推荐(0) 编辑

2021年9月9日

摘要: 可以通过远程主机的9001端口来远程管理supervisor进程 修改配置/etc/supervisor.conf [inet_http_server] ; 注[inet_http_server] 前面的分号要去掉) port=0.0.0.0:9001 ; (ip_address:port spec 阅读全文
posted @ 2021-09-09 21:00 Arron_Ramsey 阅读(174) 评论(0) 推荐(0) 编辑
 
摘要: Uvicorn Uvicorn is a lightning-fast "ASGI" server. It runs asynchronous Python web code in a single process. Gunicorn You can use Gunicorn to manage U 阅读全文
posted @ 2021-09-09 16:10 Arron_Ramsey 阅读(1440) 评论(0) 推荐(0) 编辑

2021年9月7日

摘要: 前提是gunicorn已经配置完成,能正常访问。 1.使用的nginx中的配置项在nginx.conf添加自定义项,方便管理 include /etc/nginx/conf.d/*.conf; 自定义配置项内容 server{ listen 8443; server_name 172.16.128. 阅读全文
posted @ 2021-09-07 17:10 Arron_Ramsey 阅读(239) 评论(0) 推荐(0) 编辑

2021年9月3日

摘要: fastapi 一般是使用 uvicorn 启动的,gunicorn需要对uvicorn包装。使用supervisor管理进程时, gunicorn --worker-class="uvicorn.workers.UvicornWorker" main:app --bind 0.0.0.0:8040 阅读全文
posted @ 2021-09-03 17:00 Arron_Ramsey 阅读(555) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页