OpenVZ VPS使用BBR加速之优化

/ 0评 / 0

建议系统为Debian 8 64、Centos 7及以上。

1、下载脚本

<span class="hljs-attribute">wget</span> --<span class="hljs-literal">no</span>-check-certificate https://raw.githubusercontent.com/mixool/rinetd/master/rinetd_bbr_powered -O /root/rinetd

2、设置权限

<span class="hljs-keyword">chmod</span> +<span class="hljs-keyword">x</span> rinetd

3、添加监听地址

<span class="hljs-selector-tag">vi</span> <span class="hljs-selector-tag">rinetd</span><span class="hljs-selector-class">.conf</span>

添加

# <span class="hljs-selector-tag">bindadress</span> <span class="hljs-selector-tag">bindport</span> <span class="hljs-selector-tag">connectaddress</span> <span class="hljs-selector-tag">connectport</span>
0<span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span> 443 0<span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span> 443
0<span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span> 80 0<span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span> 80

这块可以添加其他端口,如你的ss端口为9001,则再添加:

0<span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span> 9001 0<span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.0</span> 9001

4、设置开机启动

vi <span class="hljs-meta-keyword">/etc/</span>systemd<span class="hljs-meta-keyword">/system/</span>rinetd.service

添加

<span class="hljs-section">[Unit]</span>
<span class="hljs-attr">Description</span>=rinetd
<span class="hljs-section">
[Service]</span>
<span class="hljs-attr">ExecStart</span>=/root/rinetd -f -c /root/rinetd.conf raw venet0:<span class="hljs-number">0</span>
<span class="hljs-attr">Restart</span>=always
<span class="hljs-section">  
[Install]</span>
<span class="hljs-attr">WantedBy</span>=multi-user.target

5、启动

<span class="hljs-selector-tag">systemctl</span> <span class="hljs-selector-tag">enable</span> <span class="hljs-selector-tag">rinetd</span><span class="hljs-selector-class">.service</span> && <span class="hljs-selector-tag">systemctl</span> <span class="hljs-selector-tag">start</span> <span class="hljs-selector-tag">rinetd</span><span class="hljs-selector-class">.service</span>

6、效果
比较明显,对于OpenVZ VPS来说,救星啊。
我的alpharacks ovz vps,用了后,轻松1080P。
alpharacks-bbr.jpg

via:http://xpsss.com/851.html

发表评论