更新 setup.sh

This commit is contained in:
2025-11-14 09:30:35 +00:00
parent b64310db32
commit 1fdfe66c68

View File

@@ -10,6 +10,8 @@ echo "6. 安装公钥"
echo "7. 安装conda" echo "7. 安装conda"
echo "8. 安装rust" echo "8. 安装rust"
echo "9. 开启bbr" echo "9. 开启bbr"
echo "10. 安装rust"
echo "11. 安装uv管理器"
read -p "输入你的选择: " choices read -p "输入你的选择: " choices
# 处理选择 # 处理选择
@@ -113,6 +115,12 @@ for choice in $choices; do
echo "开启bbr..." echo "开启bbr..."
echo -e "net.core.default_qdisc=fq\nnet.ipv4.tcp_congestion_control=bbr" | tee -a /etc/sysctl.conf echo -e "net.core.default_qdisc=fq\nnet.ipv4.tcp_congestion_control=bbr" | tee -a /etc/sysctl.conf
sysctl -p sysctl -p
10)
echo "安装rust"
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
11)
echo "安装uv管理器"
curl -LsSf https://astral.sh/uv/install.sh | sh
*) *)
echo "无效的选择: $choice" echo "无效的选择: $choice"
;; ;;