MENU

自用服务器各类脚本

February 3, 2022 • Read: 1640 • 小记

vps 性能信息测试

#英
curl -sL yabs.sh | bash -s -- -i

wget -qO- git.io/superbench.sh | bash

#中
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh

vps 三网测速

bash <(curl -Lso- https://www.infski.com/files/superspeed.sh)

vps 回程路由测试

#简洁版-1
curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash

#简洁版-2
curl https://raw.githubusercontent.com/zhanghanyun/backtrace/main/install.sh -sSf | sh

#详细版
wget -qO- git.io/autobesttrace | bash

vps融合怪测试脚本

bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh)

甲骨文DD Debian11

#ARM
curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh && chmod a+rx debi.sh
#运行
sudo ./debi.sh --architecture arm64 --user root --password 密码
#重启
sudo shutdown -r now

#AMD 默认用户名为:root,默认密码为:MoeClub.org
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -firmware

甲骨文一键自动锻炼

#AMD版本
cd /root && wget https://raw.githubusercontent.com/velor2012/lookbusy-docker/main/lookbusy -O lookbusy && chmod +x lookbusy && sudo echo "0 */3 * * * root timeout 600 /root/lookbusy -c 10-20 -r curve" >> /etc/crontab && grep -q centos /etc/os-release && service crond restart || service cron restart

#ARM版本
cd /root && wget https://raw.githubusercontent.com/velor2012/lookbusy-docker/main/lookbusy-arm -O lookbusy && chmod +x lookbusy && sudo echo "0 */3 * * * root timeout 600 /root/lookbusy -c 10-20 -r curve" >> /etc/crontab && grep -q centos /etc/os-release && service crond restart || service cron restart

#卸载
#编辑定时任务
nano /etc/crontab

#删除内容行 
"0 */3 * * * root timeout 600 /root/lookbusy -c 10-20 -r curve

#重启服务生效
grep -q centos /etc/os-release && service crond restart || service cron restart

#删除 lookbusy 文件
rm -f /root/lookbusy

开心版宝塔面板

#Centos安装命令(默认安装是7.8.0 直接在线升级7.9.5)
yum install -y wget && wget -O install.sh http://io.bt.sy/install/install_6.0.sh && sh install.sh

#Debian
wget -O install.sh http://io.bt.sy/install/install-ubuntu_6.0.sh && bash install.sh

#Ubuntu
wget -O install.sh http://io.bt.sy/install/install-ubuntu_6.0.sh && sudo bash install.sh

#升级7.9.5
curl https://io.bt.sy/install/update_panel.sh|bash

流媒体检测

#流媒体多合一检测
bash <(curl -L -s check.unlock.media)

#Netflix检测 
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.61/nf_2.61_linux_amd64 && chmod +x nf && clear && ./nf

#Netflix检测 ARM
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.61/nf_2.61_linux_arm64 && chmod +x nf && clear && ./nf

一键开启BBR(适用于较新的Debian、Ubuntu)

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

ovz bbrplus

#使用脚本前先开启TUN/TAP
wget --no-cache -O lkl-haproxy.sh https://github.com/mzz2017/lkl-haproxy/raw/master/lkl-haproxy.sh && bash lkl-haproxy.sh

Warp 一键脚本

#首次运行
wget -N https://raw.githubusercontent.com/fscarmen/warp/main/menu.sh && bash menu.sh

#再次运行
warp

哪吒探针

curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh  -o nezha.sh && chmod +x nezha.sh
sudo ./nezha.sh

清理 /var/log/目录下的过期日志

find /var/log/ -name "*.1" -exec rm -rf {} \; && find /var/log/ -name "*.log.1" -exec rm -rf {} \; && find /var/log/ -name "*.gz" -exec rm -rf {} \;
Last Modified: February 3, 2023
Archives QR Code Tip
QR Code for this page
Tipping QR Code