常用脚本

BBR

预先准备
1
centos:yum install ca-certificates wget -y && update-ca-trust force-enable
1
debian/ubuntu:apt-get install ca-certificates wget -y && update-ca-certificates
不卸载内核版本
1
wget -O tcpx.sh "https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh

fuse

1
apt-get install fuse3

Look glass

1
docker run -d --name looking-glass --restart always --network host wikihostinc/looking-glass-server
1
docker run -d -e HTTP_PORT=8088 --name looking-glass --restart always --network host wikihostinc/looking-glass-server

隧道

1
ssh root@ip -L 8888:localhost:10000

http://localhost:8888/web

Rclone安装

1
2
bash <(wget -qO- https://git.io/gclone.sh)
curl https://rclone.org/install.sh | sudo bash

scp传输

1
scp -P 端口 -r /目录 root@ip:/目录

预留空间释放

1
2
df -hT 查看磁盘大小 
tune2fs -r 1000 /dev/XXX