CloudAtCost服务器搭建
CentOS6/7
首先安装依赖:unzip, zip, gcc, wget, curl
yum install gcc wget curl
yum install zip unzip
yum install -y git
还要注意安装yum utils
参考 yum中途中断There are unfinished transactions remaining. You might consider running yum-complete-tra)
yum install yum-utils
yum clean all
yum-complete-transaction –cleanup-only
安装魔改bbr
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" chmod +x tcp.sh ./tcp.sh
然后安装v2ray(包括了Shadowsocks)
参考
bash <(curl -s -L https://git.io/v2ray.sh)
最后是秋水大神的脚本
1121 update:还是建议用逗比的脚本比较好(新,更便于管理)
『原创』CentOS/Debian/Ubuntu ShadowsocksR 单/多端口 一键管理脚本
特别注意原文中所说的,混淆协议的选择(最佳就是默认的plain)
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/ssr.sh && chmod +x ssr.sh && bash ssr.sh
1028 update: 用下面的新的脚本更好:
wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh chmod +x shadowsocks-all.sh ./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log
- First Commit:
先安装GCC
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh chmod +x shadowsocksR.sh ./shadowsocksR.sh 2>&1 | tee shadowsocksR.log
参考
ShadowsocksR(SSR)一键安装脚本 By 秋水逸冰
卸载
./shadowsocksR.sh uninstall
查看状态
/etc/init.d/shadowsocks status
- First Commit:
CAC debian8 基本设置
安装sudo以及build-essential
- 首先安装sudo
apt-get update
apt-get install sudo
- 用Nano添加源,更新,最后直接安装build-essential
sudo apt edit-sources
用Nano添加源
deb http://httpredir.debian.org/debian jessie main contrib
deb-src http://httpredir.debian.org/debian jessie main contrib
deb http://httpredir.debian.org/debian jessie-updates main contrib
deb-src http://httpredir.debian.org/debian jessie-updates main contrib
deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib
最后直接用以下命令即可安装build-essential
sudo apt update
sudo apt upgrade
sudo apt install build-essential
最后就能愉快地安装bbr了
CAC一键dd
debian8直接dd debian99失败,但是ubuntu 14 LTS直接dd debian 9 就成功了
检查bbr是否开启
From 秋水大神的一键安装最新内核并开启 BBR 脚本
安装完成后,脚本会提示需要重启 VPS,输入 y 并回车后重启。
重启完成后,进入 VPS,验证一下是否成功安装最新内核并开启 TCP BBR,输入以下命令:
uname -r
查看内核版本,显示为最新版就表示 OK 了
sysctl net.ipv4.tcp_available_congestion_control
返回值一般为:
net.ipv4.tcp_available_congestion_control = bbr cubic reno
或者为:
net.ipv4.tcp_available_congestion_control = reno cubic bbr
sysctl net.ipv4.tcp_congestion_control
返回值一般为:
net.ipv4.tcp_congestion_control = bbr
sysctl net.core.default_qdisc
返回值一般为:
net.core.default_qdisc = fq
lsmod | grep bbr
返回值有 tcp_bbr 模块即说明 bbr 已启动。注意:并不是所有的 VPS 都会有此返回值,若没有也属正常。
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.