环境变量all_proxy

下载软件的时候,由于墙,经常很慢.以前是通过开代理,然后用polipo转http,然后在各个软件工具里面配置代理. 最近发现原来,一般yum curl git wget 等工具都支持环境变量all_proxy.赶紧mark一下.  alias huiproxy=’export all_proxy=socks5h://127.0.0.1:1080 && curl ip.sb’ alias huiproxyno=’unset all_proxy && curl ip.sb’ 因为用了ssr,我这里用了socks5h.socks5和socks5h的区别可以看这里Differentiate socks5h from socks5 and socks4a from socks4 when handling proxy string 1. In a proxy string, socks5h:// and socks4a:// mean that the hostname isresolved by the SOCKS server. 2. socks5:// and socks4:// mean that the… Continue reading 环境变量all_proxy

Published
Categorized as linux

linux信号量

文章来源:编程思想博客 信号量 信号名称 编号 能否屏蔽 默认动作 俗称 SIGINT 2 YES 进程自己退出 自杀 SIGTERM 15 YES 进程自己退出 自杀 SIGQUIT 3 YES 执行 core dump 进程自己退出 自杀 SIGKILL 9 NO 进程被内核干掉 它杀

Published
Categorized as linux

清理lvm无效的设备信息.

lvm全局锁 /var/lock/lvm/g_lock clean not valid devmmaper dmsetup ls |grep app |awk ‘{print $1}’ |xargs dmsetup remove

Published
Categorized as linux

rhel删除系统服务

remove unvalidable servie systemctl stop [servicename] systemctl disable [servicename] rm /etc/systemd/system/[servicename] rm /etc/systemd/system/[servicename] symlinks that might be related systemctl daemon-reload systemctl reset-failed

Published
Categorized as linux