(记录的为美国部署的VPS,过程大约2小时完成)
ssh端口修改:nano /etc/ssh/sshd_config
apt-get install curl
apt update
apt full-upgrade
1,预先准备,开启BBR加速
centos:yum install ca-certificates wget -y && update-ca-trust force-enable
debian/ubuntu:apt-get install ca-certificates wget -y && update-ca-certificates
不卸载内核版本
wget -O tcpx.sh “https://git.io/JYxKU” && chmod +x tcpx.sh && ./tcpx.sh
卸载内核版本
wget -O tcp.sh “https://git.io/coolspeeda” && chmod +x tcp.sh && ./tcp.sh
关联action自动编译内核
https://github.com/ylx2016/kernel/
双持bbr+锐速
bbr 添加
echo “net.core.default_qdisc=fq” >> /etc/sysctl.d/99-sysctl.conf
echo “net.ipv4.tcp_congestion_control=bbr” >> /etc/sysctl.d/99-sysctl.conf
sysctl -p
编辑锐速文件
nano /appex/etc/config
检测代码有BUG,如果锐速正常 运行查看
bash /appex/bin/lotServer.sh status | grep “LotServer”
检查bbr 内核默认bbr算法不会有输出
lsmod | grep bbr
检查centos安装内核
grubby –info=ALL|awk -F= ‘$1==”kernel” {print i++ ” : ” $2}’
查看当前支持TCP算法
cat /proc/sys/net/ipv4/tcp_allowed_congestion_control
查看当前运行的算法
cat /proc/sys/net/ipv4/tcp_congestion_control
查看当前队列算法
sysctl net.core.default_qdisc
命令: uname -a
作用: 查看系统内核版本号及系统名称
命令: cat /proc/version
作用: 查看目录”/proc”下version的信息,也可以得到当前系统的内核版本号及系统名称
真实队列查看? 更改队列算法可能需要重启生效
tc -s qdisc show
/etc/sysctl.d/99-sysctl.conf
sysctl –system
2,开启gost(By风萧萧兮易水寒)
wget https://www.fiisi.com/gost/gosttest/gost.sh –no-check-certificate
chmod +x gost.sh
bash gost.sh
执行1,7,按需开启,注意服务端和客户端的协议(脚本忽然不在,重新执行一次)
相关文件、文献参考:
https://github.com/ginuerzh/gost
https://github.com/haoel/haoel.github.io
3,安装面板(BT、APPNODE)
curl -sSO http://download.bt.cn/install/install_panel.sh && bash install_panel.sh
BT神秘代码:
ssh rm -f /www/server/panel/data/bind.pl
/www/server/panel/class/panelplugin.py
softList[‘pro’] = 1
for soft in softList[‘list’]:
soft[‘endtime’] = 0
4,一键aria2.sh
wget -N –no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/aria2.sh && chmod +x aria2.sh && bash aria2.sh
执行1,10,并更新配置文件
安装AriaNg
https://github.com/mayswind/AriaNg/releases 或
wget https://github.com/mayswind/AriaNg/releases/download/1.1.3/AriaNg-1.1.3.zip
unzip AriaNg-1.1.3.zip
5,安装OneDriveUploader
#64位系统下载
wget https://raw.githubusercontent.com/MoeClub/OneList/master/OneDriveUploader/amd64/linux/OneDriveUploader -P /usr/local/bin/
#32位系统下载
wget https://raw.githubusercontent.com/MoeClub/OneList/master/OneDriveUploader/i386/linux/OneDriveUploader -P /usr/local/bin/
#arm架构下载
wget https://raw.githubusercontent.com/MoeClub/OneList/master/OneDriveUploader/arm/linux/OneDriveUploader -P /usr/local/bin/
#给予权限
chmod +x /usr/local/bin/OneDriveUploader
授权地址【国际版、个人版(家庭版)】【中国版(世纪互联)】
#国际版,将url换成你上面复制的授权地址,包括http://loaclhost。
OneDriveUploader -a “url”
#个人版(家庭版),将url换成你上面复制的授权地址,包括http://loaclhost。
OneDriveUploader -ms -a “url”
#中国版(世纪互联),将url换成你上面复制的授权地址,包括http://loaclhost。
OneDriveUploader -cn -a “url”
等待Init config file: /path/to/file/auth.json
6,如果使用WP的话,那么强烈推荐下列插件
china-yes
- 本文固定链接: https://www.whyqi.com/489.html
- 转载请注明: 歪奇 于 歪奇 发表
[…] 我们使用的操作系统为Debian 10.2,之所以使用Debian是因为Centos 7或8在红帽宣布停止支持年限后,Debian变得额外的香甜,具体步骤参考Debian 10 新部署使用步骤记录,为防止服务端运行内存不足的情况发生,我们需要为Debian增加swap空间: […]