Archive Post

openresty运维——日志记录请求体和响应体内容

研究成果: I、消息体解码 II、让长消息体显示完整 一、安装openresty 1、下载链接:https://openresty.org/download/openresty-1.19.9.2.tar.gz 2、破解 日志消息硬编码长度限制 sed -i '/^#define NGX_MAX_ERROR_STR/s/4096/1024000/g'…

Ubuntu 22.04 下使用ssh登录提示no hostkey alg

在/etc/ssh/sshd_config里写入: HostKeyAlgorithms +ssh-rsa PubkeyAcceptedKeyTypes +ssh-rsa

20个常用的Python镜像地址(附指定镜像方法)

使用 -i 参数来指定使用镜像地址 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python Python是一种广泛使用的编程语言,它具有丰富的第三方库和包。在使用Python时,我们经常需要从Python软件包索引(PyPI)中安装各种库和包。然而,有时候由于网络环境的限制或者下载速度较慢,我们可能需要使用镜像地址来加快安装速度。 以下是20个常用的Python镜像地址:…

搭建gpsd时间服务器

gpsd-20251202.tarDownload ntp-20251128.tarDownload 要搭建一个基于 gpsd 的时间服务器,你可以按照以下步骤进行: 硬件准备: GPS 接收器:选择一个兼容 gpsd 的…

用 cryptsetup 创建 LUKS 的物理加密盘(加密物理分区)

用 LUKS 方式创建(格式化)加密盘,该加密盘位于 /dev/sdc1 分区 umount -l /dev/sdc1 wipefs -a…

使用acme.sh免费申请证书

国内服务器: git clone https://gitee.com/neilpang/acme.sh.git cd acme.sh ./acme.sh --install -m my@example.com…

debian12 pip3 install runlike报错问题解决方法

apt install python3-pip 报错: 第一种:使用venv虚拟环境: apt install python3-venv mkdir -p…

nginx运维——解决跨域问题

server { listen 3000; location / { if ($request_method =…

Protected: 双路多端口反向代理

This content is password-protected. To view it, please enter the…

Linux 系统中手动释放内存缓存的常用指令

# 加 sudo 获取 root 权限,确保执行成功 sudo sync && sudo…