杜甫测试
wget -q https://github.com/Aniverse/A/raw/i/a && bash a
测试相关
机器测试
单线程测试
bash <(curl -Lso- https://bench.im/hyperspeed)
最全测速脚本
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast
superbench
wget -qO- git.io/superbench.sh | bash
Bench.sh
wget -qO- bench.sh | bash
速度测试
显示延迟、抖动
curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
直接显示回程线路
curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
wget -q route.f2k.pub -O route && bash route
# 第一个 wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.shbash testrace.sh # 第二个 wget -qO- git.io/besttrace | bash
四网测速
wget -O jcnf.sh https://raw.githubusercontent.com/Netflixxp/jcnfbesttrace/main/jcnf.sh bash jcnf.sh
三网测速
bash <(curl -Lso- https://git.io/superspeed_uxh)
带快速四网测试版本:
bash <(curl -Lso- https://dl.233.mba/d/sh/speedtest.sh)
bash <(curl -Lso- https://git.io/J1SEh)
带综合测试的版本(CPU信息、Geekbench等):
bash <(wget --no-check-certificate -O- https://dl.233.mba/d/sh/superbenchpro.sh)
测试25端口是否开放
telnet smtp.aol.com 25
测试IPv4优先还是IPv6优先
curl ip.p3terx.com
流媒体测试
全媒体测试
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
奈飞测试
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.5/nf_2.5_linux_amd64 && chmod +x nf && clear && ./nf
#第一个 bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh) # 第二个 bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")
WARP
wget -N --no-check-certificate https://cdn.jsdelivr.net/gh/YG-tsj/CFWarp-Pro/multi.sh && chmod +x multi.sh && ./multi.sh
之后进入脚本快捷方式为:bash multi.sh
服务器时间
CentOS 同步时间
yum -y install ntpdate timedatectl set-timezone Asia/Shanghai ntpdate ntp1.aliyun.com
BBR
CentOS 7 BBR
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
一键开启BBR
uname -srm
输出结果:
Linux 3.10.0-957.12.2.el7.x86_64 x86_64 3 - 内核版本. 10 - 主修订版本. 0-957 - 次要修订版本. 12 - 补丁版本.
一般来说,Ubuntu18.04以上就可以(默认的内核4.15)
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf sysctl -p sysctl net.ipv4.tcp_available_congestion_control lsmod | grep bbr
Docker相关
更新、安装必备软件
apt-get update && apt-get install -y wget vim
海外服务器
非大陆Docker安装
wget -qO- get.docker.com | bash
卸载Docker
sudo apt-get purge docker-ce docker-ce-cli containerd.io
sudo rm -rf /var/lib/dockersudo rm -rf /var/lib/containerd
非大陆Docker-compose安装
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
查看版本
docker-compose --version
大陆服务器
国内机安装docker
curl -sSL https://get.daocloud.io/docker | sh
国内机安装docker-compose
curl -L https://get.daocloud.io/docker/compose/releases/download/v2.1.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
卸载docker
sudo apt-get remove docker docker-engine rm -fr /var/lib/docker/
防火墙
CentOS 关闭防火墙
systemctl start supervisord systemctl disable firewalld systemctl stop firewalld