vps安装:bbr / ssr / cloud-torrent / Bt-Panel / owncloud
VPS :linode
系统:centos7
bbr:加速
ssr:翻墙
cloud-torrent:bt&磁链下载
Bt-Panel:图形控制面板&建站
owncloud:云盘
2018年3月19日,代码测试都可用
linode选择frankfurt机房ping在300ms,但是ssr+bbr之后上海电信下载速度6000+kb/s,youtube可以2k
bbr:参考www.jevin.org/google-bbr-for-linode-centos7/
cat > /etc/yum.repos.d/elrepo.repo << EOF
[elrepo-kernel]
name=ELRepo.org Community Enterprise Linux Kernel Repository - el7
baseurl=https://elrepo.org/linux/kernel/el7/\$basearch/
https://mirrors.coreix.net/elrepo/kernel/el7/\$basearch/
https://jur-linux.org/download/elrepo/kernel/el7/\$basearch/
https://repos.lax-noc.com/elrepo/kernel/el7/\$basearch/
https://mirror.ventraip.net.au/elrepo/kernel/el7/\$basearch/
enabled=1
gpgcheck=0
EOF
yum -y install kernel-ml grub2
grub2-mkconfig -o /boot/grub/grub.cfg
linode后台boot setting
reboot
cat >>/etc/sysctl.conf << EOF
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
EOF
sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bb
ssr:参考shadowsocks.be/9.htm
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
cloud-torrent: 参考www.zrj96.com/post-245.html
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/cloudt.sh && chmod +x cloudt.sh && bash cloudt.sh
bt-panel:参考www.bt.cn/download/linux.html
yum install -y wget && wget -O install.sh https://download.bt.cn/install/install.sh && sh install.sh
========================================================
bt-panel安装nginx,建立网站,将cloud-torrent的下载目录作为网站运行根目录,设置密码访问,开启索引,可以用web方式访问下载
开启目录索引的方式
/www/server/nginx/conf目录下修改nginx.conf
user www www;改成user root root;
server段下面加入
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
charset utf-8,gbk;
作用分别是开启索引,显示大小,显示时间,解决中文乱码
========================================================
owncloud:参考《搭建私有云owncloud》
========================================================
own可以加挂外部存储,比如googledrive,可以参考www.orgleaf.com/903.html
========================================================