Ubuntu-编译 Hcache 查看缓存

Ubuntu 编译 Hcache 查看缓存

BIN 方式

1
2
3
wget https://silenceshell-1255345740.cos.ap-shanghai.myqcloud.com/hcache
chmod +x hcache
mv hcache /usr/local/bin/

源码编译方式

1
2
3
4
5
6
7
8
9
10
11
12
wget https://github.com/silenceshell/hcache/archive/master.zip
unzip master.zip
cd hcache-master
export GOPROXY=https://goproxy.cn
git config --global url.git://github.com/.insteadOf https://github.com/
go get github.com/tobert/pcstat
go get github.com/golang/sys/unix
make build
sudo cp hcache /usr/local/bin/
cd ..
cd ..
rm -rf master.zip

查看缓存

1
hcache -top 3