ubuntu/debian等安装wget

apt-get install wget -y

centos等安装wget

yum install wget -y

例如

bash <(wget –no-check-certificate -O- https://dl.233.mba/sh/superbenchpro.sh)

查看CPU信息

cat /proc/cpuinfo
仙人个人常用VPS指令&脚本-5月版

查看当前内核信息

uname -a
仙人个人常用VPS指令&脚本-5月版

内核更改-开启BBR,更换BBRplus等

仙人个人常用VPS指令&脚本-5月版

卸载内核版本

wget -O tcp.sh https://git.io/coolspeeda&#8221; && chmod +x tcp.sh && ./tcp.sh

镜像(国内机器或ipv6 only请使用这个)

wget -N –no-check-certificate https://dl.233.mba/sh/tcp.sh&#8221; && chmod +x tcp.sh && ./tcp.sh

不卸载内核版本

wget -O tcpx.sh https://git.io/JYxKU&#8221; && chmod +x tcpx.sh && ./tcpx.sh

镜像(国内机器或ipv6 only请使用这个)

wget -N –no-check-certificate https://dl.233.mba/sh/tcpx.sh&#8221; && chmod +x tcpx.sh && ./tcpx.sh

萌咖大佬的一键DD重装系统

dd安装debian10 64位示例

bash <(wget –no-check-certificate -qO- ‘https://dl.233.mba/sh/InstallNET.sh’) -d 10 -v 64 -a -p {自定义密码} –mirror {自定义镜像源}

dd安装win2019server示例(示例采用nat.ee大佬的镜像,默认端口3389,账户Administrator,密码nat.ee)

wget –no-check-certificate -qO InstallNET.sh https://dl.233.mba/sh/InstallNET.sh&#8217; && bash InstallNET.sh -dd https://dl.233.mba/yilai/win2019server-enus/winsrv2019-data-x64-us.vhd.gz&#8217;

dd安装群晖6.17(ds3617xs):(来源https://hostloc.com/thread-1006309-1-1.html

首先查看是否支持virtio_blk

lsmod | grep virtio_blk

接着查看云服务器mac地址

ip addr

然后本地修改img镜像/boot/grub/grub.cfg的mac地址

镜像下载地址:https://dl.233.mba/yilai/DS3617xs_6.17up3_virtio.img.gz

#将yourmacaddr替换成上一步获取的mac
sed -i ‘s/mac1=0011322CA603/mac1=yourmacaddr/g’ /boot/grub/grub.cfg

修改完成后使用gzip打包镜像

#debian下挂载修改img镜像并打包,其中yourmacaddr替换成上一步获取的mac
gunzip DS3617xs_6.17up3_virtio.img.gz
mount -o loop,offset=$((9177088*512)) DS3617xs_6.17up3_virtio.img /mnt
sed -i ‘s/mac1=0011322CA603/mac1=yourmacaddr/g’ /mnt/boot/grub/grub.cfg
umount /mnt
gzip DS3617xs_6.17up3_virtio.img

上传直链,修改下面的命令进行安装

 

仙人个人常用VPS指令&脚本-5月版

Linux修改主机名

首先执行,例如hostnamectl set-hostname wrnxr

hostnamectl set-hostname <yourname>

然后执行下面的命令,修改原主机名为刚刚设置的

vi /etc/hosts

最后输入reboot重启机器

iptables一键转发脚本

wget –no-check-certificate https://dl.233.mba/sh/iptables.sh && bash iptables.sh
仙人个人常用VPS指令&脚本-5月版
仙人个人常用VPS指令&脚本-5月版

一键开启Swap脚本

特点:一键开启,包含删一键添加与删除功能

wget –no-check-certificate https://dl.233.mba/sh/swap.sh && bash swap.sh
仙人个人常用VPS指令&脚本-5月版

Aria2一键安装脚本

Aria2 是目前最强大的全能型下载工具,它支持 BT、磁力、HTTP、FTP 等下载协议,常用做离线下载的服务端。Aria2 一键安装管理脚本是 Toyo (逗比) 大佬最为知名的脚本作品之一,2018年11月14日逗比大佬因未知原因突然失联。由于博主非常喜欢 Aria2 所以自2018年12月7日起开始接手这个项目并进行了大量的功能与细节优化,一直持续维护至今。增强版脚本整合了 Aria2 完美配置,在安装 Aria2 的过程中会下载这套配置方案,这套方案包含了配置文件、附加功能脚本等文件,用于实现 Aria2 功能的增强和扩展,提升 Aria2 的下载速度与使用体验,解决 Aria2 在使用中遇到的 BT 下载无速度、文件残留占用磁盘空间、任务丢失、重复下载等问题。

Github:https://github.com/P3TERX/aria2.sh

wget -N git.io/aria2.sh && chmod +x aria2.sh && ./aria2.sh
仙人个人常用VPS指令&脚本-5月版

Superbench修改版

原作者找不到,希望知道的人在评论区留言;本站在上面基础上对测速节点进行维护

特点:支持查看Basic system info,Geekbench,besttrace,I/O test,Media Unlock test以及speedtest(2022-2-10v1.3.5又增加了新的测速节点)

bash <(wget –no-check-certificate -O- https://dl.233.mba/sh/superbenchpro.sh)
仙人个人常用VPS指令&脚本-5月版
v1.3.5
仙人个人常用VPS指令&脚本-5月版
v1.3.5
仙人个人常用VPS指令&脚本-5月版
仙人个人常用VPS指令&脚本-5月版
仙人个人常用VPS指令&脚本-5月版
仙人个人常用VPS指令&脚本-5月版
仙人个人常用VPS指令&脚本-5月版
仙人个人常用VPS指令&脚本-5月版

老鬼大佬的SuperBench测试脚本

仙人个人常用VPS指令&脚本-5月版

镜像(国内机器或ipv6 only请使用这个)

wget -qO- –no-check-certificate https://dl.233.mba/sh/superbench.sh | bash

秋水逸冰大佬的UnixBench.sh

仙人个人常用VPS指令&脚本-5月版
chmod +x unixbench.sh
./unixbench.sh

镜像(国内机器或ipv6 only请使用这个)

wget –no-check-certificate https://dl.233.mba/sh/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh

推荐杜甫使用-本脚本支持查看I/O bench以及system info

支持查看硬件信息,硬盘通电时间,io等脚本,适合独立服务器使用

vps也能用

Github:https://github.com/Aniverse/A

wget -q https://github.com/Aniverse/A/raw/i/a && bash a
仙人个人常用VPS指令&脚本-5月版

LemonBench.sh

特点:

  • 服务器基础信息(CPU信息/内存信息/Swap信息/磁盘空间信息等)
  • 流媒体解锁情况
  • Speedtest网速测试 (本地到最近源及国内各地域不同线路的网速)
  • 磁盘测试(4K块/1M块 直接写入测试)
  • 路由追踪测试(追踪到国内和海外不同线路的路由信息)
  • Spoofer测试(获取详细网络信息,快速判断服务器接入线路)
仙人个人常用VPS指令&脚本-5月版

快速测试:

curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast

完整测试:

curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s full

Superspeed三网多节点测速

特点:节点多,支持三网

Github:https://github.com/oooldking/script

bash <(curl -Lso- https://dl.233.mba/sh/speedtest.sh)
仙人个人常用VPS指令&脚本-5月版

masonr大佬的yabs.sh

特点:支持速度测试,硬盘测试,Geekbench4/5

github:https://github.com/masonr/yet-another-bench-script

官方

wget -qO- yabs.sh | bash

或者

curl -sL yabs.sh | bash

镜像

wget –no-check-certificate https://dl.233.mba/sh/yabs.sh && bash yabs.sh
仙人个人常用VPS指令&脚本-5月版
部分截图

LovelyHaochi大佬的流媒体解锁测试脚本

特点:支持超多个流媒体的ipv4与ipv6解锁情况

仙人个人常用VPS指令&脚本-5月版
部分截图

Cloudflare warp一键脚本

内容过多,所以开了一贴做说明

请本站搜搜索

回程测试脚本

特点:支持选择节点测试,四网快速测试,手动输入IP测试三种模式

Github:https://github.com/nanqinlang-script/testrace

仙人个人常用VPS指令&脚本-5月版
部分截图

脚本

镜像 (国内机器或ipv6 only请使用这个)

wget https://dl.233.mba/sh/testrace.sh && bash testrace.sh

宝塔一键挂载硬盘脚本

特点:自动挂载至/www,方便快捷。支持Centos、Ubuntu、Debian、Fedora系统

官方BBS:https://www.bt.cn/bbs/thread-3187-1-1.html

仙人个人常用VPS指令&脚本-5月版

Centos系统请使用以下命令:

yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

Ubuntu系统请使用以下命令:

wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && sudo bash auto_disk.sh

Debian系统请使用以下命令:

wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

腾讯云删除云镜监控

直接复制粘贴全部到SSH窗口即可

sudo -i
systemctl stop tat_agent
systemctl disable tat_agent
/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/YunJing/uninst.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh
rm -f /etc/systemd/system/tat_agent.service
rm -rf /usr/local/qcloud
rm -rf /usr/local/sa
rm -rf /usr/local/agenttools
rm -rf /usr/local/qcloud
process=(sap100 secu-tcs-agent sgagent64 barad_agent agent agentPlugInD pvdriver )
for i in ${process[@]}
do
for A in $(ps aux | grep $i | grep -v grep | awk ‘{print $2}’)
do
kill -9 $A
done
done

FunctionClub大佬的内存检测脚本

检测VPS真实可分配内存,适用于检测VPS超售情况

仙人个人常用VPS指令&脚本-5月版

CentOS / RHEL:

yum install wget -y
yum groupinstall “Development Tools” -y
gcc -l stdc++ memtester.cpp
./a.out

Ubuntu / Debian

apt-get update
apt-get install wget build-essential -y
gcc -l stdc++ memtester.cpp
./a.out