Archive Post

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

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

bind运维——docker bind-9.20.16配置dnssec

bind9-20251126.tarDownload Dockerfile的代码: FROM alpine:latest as builder RUN sed -i 's|http.*/alpine/|https://mirrors.nju.edu.cn/alpine/|g'…

搭建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…

zookeeper和kafka集群搭建

services: portainer: image: portainer/portainer restart: always hostname: portainer container_name: portainer…

clickhouse运维——优化查询性能

在 ClickHouse 中,优化查询性能的配置设置可以显著提高系统的响应速度和资源利用率。以下是一些常用的配置优化选项: 1. 查询级别设置 max_threads:控制查询的最大并发线程数。默认通常为服务器 CPU 核心数。设置更高的并发数可能会增加查询速度,但需要根据硬件资源进行合理调整。sqlSET max_threads =…

nginx运维——解决跨域问题

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

postgresql运维——docker快速搭建

version: '3.9' services: db: image: postgres:16.2 restart: always # set…