测试区
融合怪脚本
curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh
Yabs
curl -sL yabs.sh | bash
三网回程
wget -qO- git.io/autobesttrace | bash
IP质量
bash <(curl -sL IP.Check.Place)
流媒体
bash <(curl -L -s media.ispvps.com)
硬盘测试
dd bs=64k count=4k if=/dev/zero of=test oflag=dsync
功能区
开启bbr
sudo sh -c "echo 'net.ipv4.tcp_congestion_control=bbr' >> /etc/sysctl.conf && sysctl -p && lsmod | grep bbr"
网络优化
cat > /etc/sysctl.conf << EOF
fs.file-max = 6815744
net.ipv4.tcp_no_metrics_save=1
net.ipv4.tcp_ecn=0
net.ipv4.tcp_frto=0
net.ipv4.tcp_mtu_probing=0
net.ipv4.tcp_rfc1337=0
net.ipv4.tcp_sack=1
net.ipv4.tcp_fack=1
net.ipv4.tcp_window_scaling=1
net.ipv4.tcp_adv_win_scale=1
net.ipv4.tcp_moderate_rcvbuf=1
net.core.rmem_max=33554432
net.core.wmem_max=33554432
net.ipv4.tcp_rmem=4096 87380 33554432
net.ipv4.tcp_wmem=4096 16384 33554432
net.ipv4.udp_rmem_min=8192
net.ipv4.udp_wmem_min=8192
net.ipv4.ip_forward=1
net.ipv4.conf.all.route_localnet=1
net.ipv4.conf.all.forwarding=1
net.ipv4.conf.default.forwarding=1
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
net.ipv6.conf.all.forwarding=1
net.ipv6.conf.default.forwarding=1
EOF
sysctl -p && sysctl --system
nexttrace路由测试
curl nxtrace.org/nt |bash
使用nexttrace 目标IP
warp获取ip
首次运行
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh [option] [lisence/url/token]
再次运行
warp [option] [lisence]
acme.sh申请证书
curl https://get.acme.sh | sh
输入acme.sh
若出现command not found
,则输入
source ~/.bashrc
更换CA
acme.sh --set-default-ca --server letsencrypt
查询DNS API,填写API
export xxx_Key="<key>"
申请证书
acme.sh --issue --dns dns_example -d example.com -d *.example.com --dnssleep 900
保存证书
acme.sh --installcert -d 'example.com' --key-file /path/ssl/example.com/example.com.key --fullchain-file /path/ssl/example.com/fullchain.cer
本文作者:VeShian
本文链接:https://veshian.cn/archives/serversh.html
版权声明:转载时须注明出处及本声明