This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 一、环境准备 | |
因此支持大部分主流的操作系统版本,比如CentOS、Debian 、Ubuntu等,只要有Python2.7就可以。 | |
## 二、下载脚本并赋予权限 | |
使用如下命令获取最新版本: | |
``` sh | |
wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | |
``` | |
赋权: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 更新: | |
``` sh | |
apt-get update | |
``` | |
### 安装原版bbr | |
``` sh | |
wget --no-check-certificate -qO 'BBR.sh' 'https://raw.githubusercontent.com/Joyace/sh/master/BBR.sh' && chmod a+x BBR.sh && bash BBR.sh | |
``` | |
### 安装增强版bbr | |
``` sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
添加源: | |
``` bash | |
nano /etc/apt/sources.list | |
# 添加如下 | |
deb https://deb.nodesource.com/node_8.x/ jessie main | |
``` | |
**其他系统安装看[这里][1]** | |
安装: | |
``` bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
安装libsodium: | |
```sh | |
wget -N --no-check-certificate https://raw.githubusercontent.com/Joyace/sh/master/libsodium.sh && chmod +x libsodium.sh && bash libsodium.sh | |
``` | |
安装ssr: | |
``` sh | |
cd | |
git clone -b akkariiin/master https://github.com/shadowsocksrr/shadowsocksr.git | |
cd shadowsocksr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 安装准备 | |
1. 一台1GB内存或者大于1GB的服务器(干净的系统),建议Debian8 x64。(如果内存小于1GB,可以添加交换空间,参考 Linux服务器添加交换空间) | |
2. 事先预先安装 [shadowsocks-libev][1](选择libev版本)。 | |
安装完之后关闭默认的 | |
``` bash | |
/etc/init.d/shadowsocks stop | |
chmod -R 000 /etc/init.d/shadowsocks | |
``` | |
3. 一个域名。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 准备工作 | |
* 注意:只有虚拟化构架为XEN、KVM、VM-Ware的VPS可以自己添加SWAP,OpenVZ不支持添加SWAP! | |
## root 账号 | |
添加SWAP操作,必须是 root 用户才可以操作,所以请用 root 账号登陆服务器或者切换为 root 用户: | |
``` bash | |
su | |
``` | |
输入执行后,会提示你输入 root 账号的密码,输入正确密码并回车后,没有报错那么就可以继续下面的步骤了。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 安装 | |
教程只写Debian 8、9,建议选择mini版。如果你是96M或者128M的KVM建议增加点Swap,教程查看:VPS添加Swap虚拟内存。 | |
### 1、安装PHP 7 和 Sqlite 3 | |
``` bash | |
#Debian 8系统 | |
#添加源 | |
echo "deb http://packages.dotdeb.org jessie all" | tee --append /etc/apt/sources.list | |
echo "deb-src http://packages.dotdeb.org jessie all" | tee --append /etc/apt/sources.list | |
#添加key |