VPS-Install-Scripts – 2024-08-16

解决CentOS 7 YUM更新问题:使用Vault镜像源替代Mirrorlist


1. 运行上述命令:

sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* 

2. 清理YUM缓存并生成新缓存:

sudo yum clean all
sudo yum makecache 

3. 更新系统:

sudo yum update

4. 安装 epel-release
sudo yum -y install epel-release

5. 安装需要的功能和软件

sudo yum -y install wget tree curl tcsh csh net-tools traceroute ca-certificates nmon iperf3 go  squid httpd  htpasswd httpd-tools 
---------------------------------------------------------------------------------------------

yum install glibc.i686 libgcc-4.8.5-11.el7.i686 libgcc_s.so.1
yum install glibc.* libgcc.* 

---------------------------------------------------------------------------------------------
bash -c "$(curl -sS http://dl.appnode.com/install.sh)"
---------------------------------------------------------------------------------------------
BBR一键脚本(仅CentOS):
命令行执行:
wget "https://github.com/cx9208/bbrplus/raw/master/ok_bbrplus_centos.sh" && chmod +x ok_bbrplus_centos.sh && ./ok_bbrplus_centos.sh
这个过程可能要几分钟 以上过程要求重启系统,输入“Y”回车即可了。
安装后,执行uname -r,显示4.14.129-bbrplus则切换内核成功
执行lsmod | grep bbr,显示有bbrplus则开启成功

BBR-Plus:
#执行BBR PLUS修正版一键脚本
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh &&  ./tcp.sh
#备用脚本
wget -N --no-check-certificate "https://raw.githubusercontent.com/sembrono/BBR-PLUS/master/tcp.sh"


特别注意以下错误!!!!  
[错误] /boot/grub2/grub.cfg 找不到,请检查

如果出现修复引导
yum install -y grub2
grub2-mkconfig -o /boot/grub2/grub.cfg
 ---------------------------------------------------------------------------------------------
#/boot/grub/grub.conf 缺失:
yum install -y grub
grub-mkconfig -o /boot/grub/grub.conf
---------------------------------------------------------------------------------------------
支持多协议多用户 xray 面板
旧版本: bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)


因为原版的 X-UI 已经很久没有更新和维护了,以下的 X-UI 为改版,来自 GitHub :点击访问
bash <(wget -qO- https://raw.githubusercontent.com/sing-web/x-ui/main/install_CN.sh)

 
Zerotier:
curl -s https://install.zerotier.com | sudo bash
zerotier-cli join 3efa5cb78a9b603e

---------------------------------------------------------------------------------------------
Smartping:
wget https://github.com/smartping/smartping/releases/download/v0.8.0/smartping-v0.8.0.tar.gz
1 cd ~ && mkdir smartping && tar xzvf smartping-v0.8.0.tar.gz -C smartping
2 cd smartping
./control start
echo "/root/smartping/control start" >> /etc/rc.local
/root/smartping/control start
/root/smartping/control restart
/root/smartping/control status
cat  /etc/rc.local
echo "/root/smartping/control start" >> /etc/rc.local
cat  /etc/rc.local
vi /etc/rc.local
---------------------------------------------------------------------------------------------
 
Squid:
yum install -y squid httpd  htpasswd httpd-tools    
htpasswd  -c /etc/squid/passwd xcm1982
systemctl restart squid.service
systemctl enable squid.service
 ---------------------------------------------------------------------------------------------
yum install iperf3
iperf3 -s

可以使用以下命令来查看您的 Linux 系统信息,还可以测试网络带宽及硬盘读写速率

wget -qO- https://bench.sh/bench.sh | bash

 
wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
---------------------------------------------------------------------------------------------
 https://airy.cn/SwitchOmega/OmegaOptions.bak

发表评论