摘要: 直接上干货 Linux 1 net.ipv4.tcp_slow_start_after_idle = 0 2 net.ipv4.tcp_mem = 13107200 15728640 18350080 3 net.ipv4.tcp_rmem = 140000000 1700000000 200000 阅读全文
posted @ 2022-01-19 18:10 知_行 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 最近有自动发送需要优化的图片资源列表需求,因此有了下面脚本 1 #!/usr/local/bin/python3 2 # coding:utf-8 3 4 # 5 # Author: changbo - 541330702@qq.com 6 # Last modified: 2022-01-19 7 阅读全文
posted @ 2022-01-19 17:51 知_行 阅读(67) 评论(0) 推荐(0) 编辑
摘要: blocking 时间花费在浏览器排队等待网络链接(以前成为排队),在SSL链接中这包括SSL握手和OCSP验证 dnslookup DNS解析时间 connecting 创建一个TCP链接所需要的时间 sending 发送请求头 waiting 等待服务器响应 阅读全文
posted @ 2022-01-10 10:45 知_行 阅读(30) 评论(0) 推荐(0) 编辑
摘要: #!/usr/local/bin/python3 # -*- coding:utf-8 -*- # # Author: changbo - 541330702@qq.com # Last modified: 2022-01-07 # Filename: miniodeloldfile.py # De 阅读全文
posted @ 2022-01-07 18:30 知_行 阅读(1803) 评论(0) 推荐(0) 编辑
摘要: 执行/usr/bin/rsync -av --delete --exclude /usr/local/openresty/nginx/html/Uploadfile/xxxx /usr/local/openresty/nginx/html/Uploadfile /mnt时 排除选项可生效,但将该语句 阅读全文
posted @ 2022-01-05 14:53 知_行 阅读(487) 评论(0) 推荐(0) 编辑
摘要: ModSecurity 官网http://www.modsecurity.cn/ ModSecurity是一个开源的、跨平台的Web应用防火墙(WAF),被称为WAF界的“瑞士军刀”。它可以通过检查Web服务接收到的数据,以及发送出去的数据来对网站进行安全防护。 ModSecurity功能介绍 SQ 阅读全文
posted @ 2021-09-03 13:44 知_行 阅读(719) 评论(0) 推荐(0) 编辑
摘要: 机房网设接多wan,现要求不同vlan走不同wan,设备配置如下 1 多vlan走不同wan口 2 操作步骤 3 # 4 sysname Router 5 # 6 ip local policy-based-route pbr1 //在Router上应用策略 7 # 8 acl number 300 阅读全文
posted @ 2021-08-21 12:02 知_行 阅读(860) 评论(0) 推荐(0) 编辑
摘要: 最近在用Django3写运维管理平台,部分完成后上线使用,怕有性能问题,因此采用supervisord来管理启动 supervisord配置如下 1 [unix_http_server] 2 file=/var/run/supervisor/supervisor.sock ; (the path t 阅读全文
posted @ 2021-08-21 11:06 知_行 阅读(242) 评论(0) 推荐(0) 编辑
摘要: routing.py 1 from django.urls import re_path 2 from . import consumers 3 4 websocket_urlpatterns = [ 5 re_path(r'ws/', consumers.ChatConsumer.as_asgi( 阅读全文
posted @ 2021-08-21 10:52 知_行 阅读(816) 评论(0) 推荐(0) 编辑
摘要: Centos7搭建rabbmq l 安装 1,增加yum源 Erlang源 [root@localhost yum.repos.d]# cat erlang.repo [rabbitmq-erlang] name=rabbitmq-erlang baseurl=https://dl.bintray. 阅读全文
posted @ 2021-07-10 16:02 知_行 阅读(50) 评论(0) 推荐(0) 编辑