Archive Post
Home / 系统运维
Debian12 Key exchange failed No compatible key exchange method.
原因:Debian12 系统自带的 OpenSSH_9.2p1 版本较高,对低版本CRT客户端密钥交换算法不支持。 解决思路:增加 OpenSSH 对低版本CRT客户端密钥的支持。 在 /etc/ssh/sshd_config 文件中追加以下两行文本…
Nginx Brotli压缩算法
Brotli 是基于LZ77算法的一个现代变体、霍夫曼编码。 Google软件工程师 在2015年9月发布了包含通用无损数据压缩的Brotli增强版本,特别侧重于HTTP压缩。 注意:使用算法的前提是启用了 https,因为 http 请求中 request header 里的 Accept-Encoding: gzip, deflate 是没有…
编译curl支持http3
Building curl with ngtcp2 involves 3 components:ngtcp2itself,nghttp3and a QUIC supporting…
debian运维——手记
debian旧版本系统apt-get update的方式 apt-get update时候一般会出现这样的错误: changed its 'Suite' value from 'stable-updates'…
通过 NSSM 图形界面配置自动重启
一、通过 NSSM 图形界面配置自动重启 打开 NSSM 配置界面以管理员身份运行命令提示符,执行以下命令(假设你的服务名为 YourServiceName):nssm edit YourServiceName 配置重启参数(关键步骤)切换到…
vim中文乱码的解决方法
/root/.vimrc :set encoding=utf-8 :set fileencoding=utf-8 :set fileencodings=utf-8,ucs-bom,gbk,gb2312,cp936
debian运维——iptables规则重启失效问题的解决方法
touch /etc/network/if-pre-up.d/iptables chmod +x /etc/network/if-pre-up.d/iptables /etc/network/if-pre-up.d/iptables的内容是: #!/bin/bash /usr/sbin/iptables-restore </etc/iptables.rules 平时加策略后…
自行定制geoip.dat和h2y.dat
下载Loyalsoldier/geoip: git clone https://github.com/Loyalsoldier/geoip.git cd geoip config.json: { "input": […