linux设置代理的命令行方法。
临时代理设置
export HTTP_PROXY=http://192.168.0.74:10809/
export HTTPS_PROXY=https://192.168.0.74:10809/
取消unset HTTP_PROXY
unset HTTP_PROXY
查看代理
env | grep xxx
要使代理服务器永久生效,可以修改 /etc/profile文件 ,在profile 中添加或者删除。
文章作者: qs100371
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 qs blog!
相关推荐
2025-07-18
安装casaos
casaos是基于社区的开源软件,专注于围绕 Docker 生态系统提供简单的个人云体验。 安装curl -fsSL https://get.casaos.io | sudo bash 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 --- Made by IceWhale with YOU ---[ OK ] Your hardware architecture is : x86_64[ OK ] Your System is : Linux[ ...
2025-05-03
安装qbittorrent
记录了安装qbittorrent的过程。 安装软件apt install qbittorrent-nox 创建qBittorrent服务nano /etc/systemd/system/qbittorrent.service 123456789[Unit]Description=qBittorrent Daemon ServiceAfter=network.target[Service]User=rootExecStart=/usr/bin/qbittorrent-noxExecStop=/usr/bin/killall -w qbittorrent-nox[Install]Wante...
2025-05-03
安装微力同步verysync
微力同步是一个简单易用的多平台文件同步软件。 docker安装mkdir -p /data/downloadsdocker run --name verysync -d -v /data/downloads:/data -p 8886:8886 jonnyan404/verysync 在x64上能正常安装运行,armv7(玩客云)上安装了但不能正常运行(退出代码2,也不知道什么意思) openwrt安装在线安装包安装,输入http://www.verysync.com/download.php?platform=openwrt-luci-app或在软件包列表里安装 打开 IP:8886...
2025-05-03
arch一日体验
下载了iso,虚拟机一启动,直接就是命令行界面自带安装脚本archinstall运行之后,先选中文源,(不能选中文语言,否则是乱码,没有中文字体),分区,建立用户,声卡不能选,下一步安装,顺利的话,最后chroot到新系统 安装GUI界面安装xorg,xorg-server,sddm,plasma-desktop,kde-applications(很大一个包,费了很长时间,一共下载1.7G),一个一个文件下载,很慢很慢。pacman -S xorg xorg-server sddm plasma-desktop 安装中文字体pacman -Ss wqy pacman -S wqy...
2025-08-09
armbian发送邮件:s-nail
实现命令行发邮件,使用163邮箱的SMTP。本文记录了部署过程。 安装s-nailapt install s-nail 设置nano /etc/s-nail.rc在文件最后加上: 12345set from=user@163.comset smtp=smtps://smtp.163.com:465 set smtp-auth=loginset smtp-auth-user=user@163.comset smtp-auth-password=此处不是邮箱密码,而是smtp服务提供的授权码!!! 发送测试邮件echo "Successful" | s-nail ...
2025-05-03
bash脚本-替换字符串
需要把md文件里的图片由.jpg或.png替换成.webp。由deepseek生成了一段脚本。 主代码12345678910111213141516171819202122#!/bin/bash# 设置目录路径directory="/data/downloads/posts/"# 设置要替换的字符串search=".png"replace=".webp"# 转义特殊字符(将 / 替换为 \/)escaped_search=$(echo "$search" | sed 's/\//\\\//g...
评论
公告
生命不休,折腾不止。