上一页 1 2 3 4 5 6 ··· 81 下一页
摘要: 使用 ffmpeg-python 对rtmp 服务器做压力测试 FFmpeg 下载: https://github.com/BtbN/FFmpeg-Builds/releases ffmpeg-master-latest-win64-gpl.zip #!/usr/bin/env python3 # 阅读全文
posted @ 2023-12-25 11:11 lshan 阅读(80) 评论(0) 推荐(0) 编辑
摘要: sudo docker run -itd --privileged=true --restart=always --name=sea_ngnix_ssl_test --net=host -v /opt/docker/nginx/ssl/log/:/var/log/nginx/ -v /opt/doc 阅读全文
posted @ 2023-11-13 10:02 lshan 阅读(97) 评论(0) 推荐(0) 编辑
摘要: ubuntu 20.04运行内存(缓存)定时清理 数据处理过程,buffer/cache 占用过大,降低了运行速度 解决方法 定时释放缓存 缓存释放脚本vim clear_caches.sh输入 echo "开始清除缓存" sync;sync;sync sleep 20 echo 1 > /proc 阅读全文
posted @ 2023-11-10 12:06 lshan 阅读(391) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-10-19 14:32 lshan 阅读(1) 评论(0) 推荐(0) 编辑
摘要: python dict和ttl支持自动过期缓存 github: https://github.com/mailgun/expiringdict 安装 pip install expiringdict pip install expiring-dict 使用: from expiringdict im 阅读全文
posted @ 2023-10-08 15:29 lshan 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 官网: https://www.elastic.co/guide/en/beats/filebeat/8.10/index.html https://www.elastic.co/guide/en/beats/filebeat/8.10/running-on-docker.html 1. 拉取镜像 阅读全文
posted @ 2023-10-07 18:51 lshan 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 查询网卡状态 [root@localhost ~]# nmcli device status DEVICE TYPE STATE CONNECTION ens33 ethernet unmanaged -- lo loopback unmanaged -- 上面状态提示未接管 开启网络 [root@ 阅读全文
posted @ 2023-09-14 13:17 lshan 阅读(188) 评论(0) 推荐(0) 编辑
摘要: # pip install pysftpimport pysftpclass SftpUtil(object): def __init__(self, host, port, username, password): self.host = host self.port = port self.us 阅读全文
posted @ 2023-08-10 13:18 lshan 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 1. 在 https://tool.chinaz.com/dns?type=a&host=github.com&ip= 修改hosts 108.177.97.100 translate.googleapis.com 20.205.243.166 github.com 阅读全文
posted @ 2023-07-20 14:25 lshan 阅读(114) 评论(0) 推荐(0) 编辑
摘要: pip freeze > requirements.txt 编写dockerfile,需要注意的是这里安装了一些c++库文件供opencv使用 Dockerfile: FROM python:3.9-slim # 将工作目录设置为 当前目录 WORKDIR /opt/app/ # 将当前目录内容复制 阅读全文
posted @ 2023-06-28 10:32 lshan 阅读(149) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 81 下一页