环境变量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

建立文章列表页面

建了个文章目录页面.展示文章的标题.因为发现自己经常要回来找命令.这里记录一下免得升级被覆盖了. 将下面文件放入wp-content/themes/twentytwenty/templates/目录下面.新建页面的时候,可以选择的模板就会多一个Article Archive Template.

Published
Categorized as web

linux信号量

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

Published
Categorized as linux

esxi 查询磁盘情况

查询主机vsan 磁盘 [root@esxi81:~] esxcli vsan storage list t10.ATA_____ST2000DM0062D2DM164__________________________________W4Z4FCNV Device: t10.ATA_____ST2000DM0062D2DM164__________________________________W4Z4FCNV Display Name: t10.ATA_____ST2000DM0062D2DM164__________________________________W4Z4FCNV Is SSD: false VSAN UUID: 525ea6a3-4652-a155-776e-8f4d58b76918 VSAN Disk Group UUID: 52713c13-17df-3858-c503-fef6bc2db464 VSAN Disk Group Name: t10.ATA_____INTEL_SSDSC2KW480H6_____________________CVLT61630BLC480EGN__ Used by this host: true In CMMDS: true Checksum: 4109026058915579745 Checksum OK: true Emulated DIX/DIF Enabled: false t10.ATA_____ST2000DM0062D2DM164__________________________________Z4ZA9DT7 Device: t10.ATA_____ST2000DM0062D2DM164__________________________________Z4ZA9DT7 Display Name: t10.ATA_____ST2000DM0062D2DM164__________________________________Z4ZA9DT7 Is SSD: false… Continue reading esxi 查询磁盘情况

Published
Categorized as vmware