-
Debian10 Debian11 开启 BBR
关于其他系统的,这里就不记录了,主要是我们这边所有的生产线和开发测试环境用的都是 debian 的,所以记录一下。TCP 拥塞控制算法 BBR (Bottleneck Bandwidth and RTT) 可以大限度地利用服务器带宽,减少排队的情况,提高网络质量。Debian10 / 11 默认的内核就是 4.19 版本的内核而且编译了 TCP BBR 模块,所以可以直接通过参数开启。 echo net.core.default_qdisc=fq >> /etc/sysctl.conf echo net.ipv4.tcp_congestion_control=bbr >> /etc/sysctl.conf sysctl -p 检查是否成功: sysctl net.ipv4.tcp_available_congestion_control 显示: net.ipv4.tcp_available_congestion_control = bbr cubic reno 表示开启成功。 或执行 lsmod | grep bbr ,检测 BBR 是否开启。... -
部分主机商的系统没更新或有缺失导致Nginx无法安装
安装Nginx报错:checking for SO_ACCEPTFILTER ... not found checking for SO_BINDANY ... not found checking for IP_TRANSPARENT ... found checking for IP_BINDANY ... not found checking for IP_BIND_ADDRESS_NO_PORT ... found checking for IP_RECVDSTADDR ... not found checking for IP_SENDSRCADDR ... not found checking for IP_PKTINFO ... found checking for IPV6_RECVPKTINFO ... found checking for TCP_DEFER_ACCEPT ... found checking for TCP_KEEPIDLE ... found checking for TCP_FASTOPEN ... found checking for TCP_INFO ... found checking for accept4() ... found checking for int size ... 4 bytes checking for long size ... 8 bytes checking for long long size ... 8 bytes checking for void * size ... 8 bytes checking for uint32_t ... found checking for uint64_t ... found checking for sig_atomic_t ... found checking for sig_atomic_t size ... 4 bytes checking for socklen_t ... found checking for in_addr_t ... found checking for in_port_t ... found checking for rlim_t ... found checking for uintptr_t ... uintptr_t found checking for system byte ordering ... little endian checking for size_t size ... 8 bytes checking for off_t size ... 8 bytes checking for time_t size ... 8 bytes checking for AF_INET6 ... found checking for setproctitle() ... not found checking for pread() ... found checking for…... -
在网站中引入兔小槽的更新日志弹窗
JS 文件下载:https://txc.qq.com/static/desktop/vendor/txc-change-log.zip <!-- 引入兔小巢更新日志的 JavaScript 文件 --> <script src="./index.js"></script> <!-- 创建弹窗文件 --> <script> // 创建兔小巢更新日志对象,传入社区ID var txcChangeLog = new TxcChangeLog({ id: 366730 }); // 当页面加载完成后,立即弹出更新日志弹窗 window.addEventListener("load", function() { // 直接调用 showModal 方法弹出更新日志弹窗 txcChangeLog.showModal(); }); </script> 根据官方的文档提示,加载在网站的头部即可。 在自媒体维基中,我们引入的页面为公告列表区域。...



