这篇文章距离最后更新已过34 天,如果文章内容或图片资源失效,请留言反馈,我会及时处理,谢谢!
1.安装alpine系统.从linux重装系统到ALpine系统
wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh
bash InstallNET.sh -alpine
root 22 LeitboGi0ro
2.更新必要组件
apk update && apk upgrade && apk add curl wget
3.开启swap虚拟内存
wget https://raw.githubusercontent.com/zhucaidan/swap.sh/main/swap.sh && bash swap.sh
4.开启BBR加速模块
echo “tcp_bbr” >> /etc/modules && modprobe tcp_bbr
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
sysctl -p
5.bbr已经开启成功,可以使用以下方式查看模块:
lsmod | grep bbr
6.安装Alpine版本小内存xui
apk add curl&&apk add bash && bash <(curl -Ls https://raw.githubusercontent.com/Lynn-Becky/Alpine-x-ui/main/alpine-xui.sh)
apk add curl && apk add bash && bash <(curl -Ls https://raw.githubusercontent.com/ozersource/x-ui-alpine/main/x-ui-alpine)
8.alpine其余常用安装脚本
安装docker
apk update && apk add docker
rc-update add docker default
service docker start
安装docker-compose
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose