Linux 常用工具指定代理

APT 配置文件 /etc/apt/apt.conf.d/proxy.conf Acquire { http::Proxy "http://<ip>:<port>"; https::Proxy "http://<ip>:<port>"; } 命令行临时指定 -o Acquire::http::Proxy="http://<ip>:<port>" -o Acquire::https::Proxy="http://<ip>:<port>" WGET 环境变量 export HTTP_PROXY="http://<ip>:<port>" export HTTPS_PROXY="http://<ip>:<port>" 配置文件 /etc/wgetrc 或者 ~/.wgetrc # You can set the default proxies for Wget to use for http, https, and ftp. # They will override the value in the environment. #https_proxy = http://proxy.yoyodyne.com:18023/ #http_proxy = http://proxy.yoyodyne.com:18023/ #ftp_proxy = http://proxy.yoyodyne.com:18023/ # If you do not want to use proxy at all, set this to off. #use_proxy = on 命令行临时指定 -e "http_proxy=http://<ip>:<port>" -e "https_proxy=http://<ip>:<port>"

二月 21, 2024 · 1 分钟 · HeeVanu

Linux 服务器开启 BBR

本文所有指令请以 root 用户执行 使用 sysctl net.ipv4.tcp_available_congestion_control 命令查看目前内核启用的 TCP 拥塞控制算法 使用 sysctl net.ipv4.tcp_congestion_control 查看当前的配置 自动加载 tcp_bbr 内核模块 生成内核模块自动加载配置文件 ...

二月 8, 2023 · 1 分钟 · HeeVanu

云服务器全新安装 ArchLinux 指南

准备工作 下载 ArchLinux ISO 镜像 官网:https://archlinux.org/download 本文以 archlinux-2022.10.01-x86_64.iso 为例 校验: sha256sum ~/download/aria2/archlinux-2022.10.01-x86_64.iso 与官网于 Checksums 处提供的 SHA256 值比较,完全一致即可 修改 GRUB 配置 使用 grub 于重启系统时启动 ArchLinux ISO 镜像 grub 配置文件:/boot/grub/grub.cfg,于适当位置添加如下内容: ...

十月 8, 2022 · 2 分钟 · HeeVanu