建议系统
CentOS 7+
Ubuntu 16+
Debian 8+
安装&升级

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

bbr

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/arloor/iptablesUtils/master/natcfg.sh" && chmod +x natcfg.sh && ./natcfg.sh

测速脚本

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

解决/boot/grub2/grub.cfg

#/boot/grub/grub.conf 缺失:
yum install -y grub 
grub-mkconfig -o /boot/grub/grub.conf 
#/boot/grub2/grub.cfg 缺失: 
yum install -y grub2 
grub2-mkconfig -o /boot/grub2/grub.cfg

更新系统

yum update -y #CentOS系统命令
apt update -y #Debian系统命令
安装工具组件
yum install -y wget #CentOS系统命令
apt install -y wget #Debian系统命令    

Ubuntu系统下:
开放所有端口
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F

防火墙解除

centos操作如下:
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service
#关闭iptables
service iptables stop
#去掉iptables开机启动
chkconfig iptables off

oracle Linux操作如下:
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service

ubuntu操作如下:
#Oracle自带的Ubuntu镜像默认设置了Iptable规则,关闭它
apt-get purge netfilter-persistent
reboot
#强制删除
rm -rf /etc/iptables && reboot
Last modification:March 7, 2022
如果觉得我的文章对你有用,请随意赞赏