上一页 1 2 3 4 5 6 7 8 ··· 24 下一页
摘要: 在线程或者进程池中执行代码 #!/usr/bin/env python # -*- coding: utf-8 -*- # @time: 2021/12/31 2:41 下午 # https://docs.python.org/zh-cn/3/library/asyncio-eventloop.ht 阅读全文
posted @ 2021-12-31 14:49 LiShiChao 阅读(131) 评论(0) 推荐(0)
摘要: 轮询法 随机法 源地址哈希法 加权轮训法 最小连接数法 阅读全文
posted @ 2021-12-25 11:21 LiShiChao 阅读(55) 评论(0) 推荐(0)
摘要: shell # shell命令 # 查看某个进程在哪个cpu 上运行 ps -eLo ruser,pid,ppid,psr,args # 查看cpu个数 cat /proc/cpuinfo |grep -c processor # 调整进程所使用的CPU taskset -cp 1 25718 阅读全文
posted @ 2021-12-22 14:26 LiShiChao 阅读(107) 评论(0) 推荐(0)
摘要: 安装pika模块 pip install pika==0.13.1 # github https://github.com/pika/pika/ # 官网 https://pika.readthedocs.io/en/stable/ 消费者脚本 # !/usr/bin/env python # -* 阅读全文
posted @ 2021-12-17 11:19 LiShiChao 阅读(412) 评论(0) 推荐(0)
摘要: 官网:https://grpc.github.io/grpc/python/grpc_asyncio.html 阅读全文
posted @ 2021-12-14 14:08 LiShiChao 阅读(33) 评论(0) 推荐(0)
摘要: WebSocket 服务 使用Python FastAPI框架官网demo,官网地址:https://fastapi.tiangolo.com/zh/advanced/websockets/ #!/usr/bin/env python # -*- coding: utf-8 -*- # @time: 阅读全文
posted @ 2021-12-09 19:16 LiShiChao 阅读(658) 评论(0) 推荐(0)
摘要: 官网:https://www.djangoproject.com/download/ 阅读全文
posted @ 2021-12-07 11:20 LiShiChao 阅读(25) 评论(0) 推荐(0)
摘要: 官网下载:https://www.pypy.org/download.html centos7安装pypy3.8 yum groupinstall -y "Development Tools" yum install -y libffi-devel ncurses-devel expat-devel 阅读全文
posted @ 2021-12-04 10:48 LiShiChao 阅读(210) 评论(0) 推荐(0)
摘要: 添加service 配置route 阅读全文
posted @ 2021-11-26 18:06 LiShiChao 阅读(93) 评论(0) 推荐(0)
摘要: 安装依赖库 wget https://github.com/apache/rocketmq-client-cpp/releases/download/2.0.0/rocketmq-client-cpp-2.0.0-centos7.x86_64.rpm sudo rpm -ivh rocketmq-c 阅读全文
posted @ 2021-11-04 14:15 LiShiChao 阅读(1071) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 24 下一页