自定义测速脚本,用于对国外 vps 配置以及网络测试
bash <(curl -Lso- https://git.io/superbench)
一键 DD 网络重装脚本
wget --no-check-certificate -O AutoReinstall.sh https://git.io/AutoReinstall.sh && bash AutoReinstall.sh
CentOS:Pwd@CentOS
其他 Linux 系统:Pwd@Linux
系统DD包下载:https://dd.1234234.xyz/
bbr/bbrplus/ 锐速内核安装脚本
卸载内核
wget -N --no-check-certificate "https://github.000060000.xyz/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
或
wget -O tcp.sh "https://git.io/coolspeeda" && chmod +x tcp.sh && ./tcp.sh
不卸载内核
wget -N --no-check-certificate "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh
或
wget -O tcpx.sh "https://git.io/JYxKU" && chmod +x tcpx.sh && ./tcpx.sh
服务器状态监控
海外
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh
./nezha.sh
大陆
curl -L https://cdn.jsdelivr.net/gh/naiba/nezha@master/script/install.sh -o nezha.sh && chmod +x nezha.sh
CN=true ./nezha.sh
宝塔挂载数据盘
https://www.bt.cn/bbs/thread-3187-1-1.html
安装宝塔面板
https://www.bt.cn/bbs/thread-19376-1-1.html
卸载宝塔面板
https://www.bt.cn/bbs/thread-9043-1-1.html
宝塔秒级监控
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
step=1
for (( i = 0; i < 60; i=(i+step) )); do
curl -sS --connect-timeout 10 -m 60 '网址'
echo "----------------------------------------------------------------------------"
endDate=`date +"%Y-%m-%d %H:%M:%S"`
echo "[$endDate] OK"
echo "----------------------------------------------------------------------------"
sleep $step
done
exit 0
Screen
安装
yum install screen
新建i窗口
screen -S i
查看所有窗口
screen -ls
接入i窗口
screen -r i
关闭i窗口
screen -X -S i quit
结束已死进程
screen -wipe
DNS64
执行以下命令更改 /etc/resolv.conf ,三选一:
echo -e "nameserver 2001:67c:2b0::4\nnameserver 2001:67c:2b0::6" > /etc/resolv.conf
echo -e "nameserver 2001:67c:27e4:15::6411\nnameserver 2001:67c:27e4::64" > /etc/resolv.conf
echo -e "nameserver 2a03:7900:2:0:31:3:104:161" > /etc/resolv.conf
可以执行以下测试:
curl https://www.baidu.com
4654654