Bao ge‘s ’ Note Book

Bao ge‘s ’ Note Book
Home » Linux

1. 修改apt源修改apt源为http版本# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware# deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware deb http://mirrors.tuna.tsingh ...

1、先创建个目录(如果已存在请忽略)sudo mkdir -p /etc/docker2、编辑docker配置源文件sudo nano /etc/docker/daemon.json 3、替换镜像地址为以下地址(其中docker.ifree.fun为自建的托管于cloudflare的代理地址){  "registry-mirrors": ["https://docker.ifree.fun"]  # 请替换为您自己的Worker自定义域名}4、输入以下命令重新加载docker镜像配置文件sudo systemctl ...

Debian12配置ssh服务器安装ssh-serversudo apt install openssh-server启动sshsudo systemctl start ssh启用sshsudo systemctl enable ssh查看ssh状态sudo systemctl status ssh可以看到有enabled和running字样说明ssh启用成功连接到服务器# username是你的用户名# 后面是ssh server的ip地址# -p后面是端口,默认22,可以不填ssh username@192.168.1.123 -p 22————————————————
Life is fantastic
🥕 More