王忘杰

SS-libev ubuntu&centos Install Run Game and Router
https://9sb.org/1052centos7环境配置yum install epel-release -...
扫描右侧二维码阅读全文
16
2019/02

SS-libev ubuntu&centos Install Run Game and Router

懒得搭建?看这里购买服务

https://9sb.org/1052

最后更新时间:2019-02-16

QQ图片20171005205741.png

centos7

环境配置

yum install epel-release -y    
yum install gettext gcc autoconf libtool automake make asciidoc xmlto c-ares-devel libev-devel openssl-devel libsodium-devel mbedtls-devel -y

export LIBSODIUM_VER=1.0.16
wget https://download.libsodium.org/libsodium/releases/libsodium-$LIBSODIUM_VER.tar.gz
tar xvf libsodium-$LIBSODIUM_VER.tar.gz
pushd libsodium-$LIBSODIUM_VER
./configure --prefix=/usr && make
sudo make install
popd
sudo ldconfig
export MBEDTLS_VER=2.6.0
wget https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz
tar xvf mbedtls-$MBEDTLS_VER-gpl.tgz
pushd mbedtls-$MBEDTLS_VER
make SHARED=1 CFLAGS=-fPIC
sudo make DESTDIR=/usr install
popd
sudo ldconfig

编译安装

cd /tmp
git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev
git submodule update --init --recursive
./autogen.sh
./configure
make
make install
cd ..
rm -rf /tmp/shadowsocks-libev

vim /etc/shadowsocks.json配置文件

{
    "server":"0.0.0.0",
    "server_port":888,
    "password":"test",
    "timeout":200,
    "method":"chacha20"
}

启动

ss-server -c /etc/shadowsocks.json &

开机启动配置vim /etc/rc.local

ss-server -c /etc/shadowsocks.json &

Ubuntu 16.04.3 LTS

如何查看系统版本?
cat /etc/issue

安装

Ubuntu 14.04 和 16.04 的用户, 请安装这个PPA源:

sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev
sudo apt-get update
sudo apt install shadowsocks-libev

配置和启动服务

编辑配置文件

sudo vim /etc/shadowsocks-libev/config.json

debian的默认配置文件

sudo vim /etc/default/shadowsocks-libev

json

{
    "server":"0.0.0.0",
    "server_port":443,
    "local_port":1080,
    "password":"666",
    "timeout":300,
    "method":"chacha20"
}

启动服务

sudo /etc/init.d/shadowsocks-libev start    # for sysvinit, or
sudo systemctl start shadowsocks-libev      # for systemd

查看SS-libev状态

systemctl status shadowsocks-libev

开机启动p

systemctl enable shadowsocks-libev


不要忘记开放防火墙端口 Firewall

centos7

如何查看系统版本?
cat /etc/redhat-release

安装

yum install epel-release -y
yum install gcc gettext autoconf libtool automake make pcre-devel asciidoc xmlto c-ares-devel libev-devel libsodium-devel mbedtls-devel -y
cd /etc/yum.repos.d/
wget https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/repo/epel-7/librehat-shadowsocks-epel-7.repo
yum update
yum install shadowsocks-libev

配置和启动服务

编辑配置文件

vi /etc/shadowsocks-libev/config.json

json

{
    "server":"0.0.0.0",
    "server_port":443,
    "local_port":1080,
    "password":"666",
    "timeout":300,
    "method":"chacha20"
}

启动服务

/etc/init.d/shadowsocks-libev start    # for sysvinit, or
systemctl start shadowsocks-libev      # for systemd

查看SS-libev状态

systemctl status shadowsocks-libev

开机启动

systemctl enable shadowsocks-libev

不要忘记防火墙开放端口 Firewall

多用户
libev仅能用多进程多端口实现

ss-server -c /etc/shadowsocks-libev/config2.json -f /var/run/shadowsocks-libev/pid2
ss-server -c /etc/shadowsocks-libev/config3.json -f /var/run/shadowsocks-libev/pid3

windows 客户端

下载地址

https://github.com/shadowsocks/shadowsocks-windows/releases

QQ截图20171005205802.png

Chrome浏览器

SwitchyOmega插件

https://www.switchyomega.com/

QQ截图20171005210041.png

QQ截图20171005210136.png

游戏代理

下载地址

https://www.sockscap64.com/sstap/

QQ截图20171005210724.png

路由器模式

斐讯 K2p

QQ截图20171006124240.png

QQ截图20171006124303.png

QQ截图20171006122329.png

苹果IOS

SuperWingy app简单好用!

TIM图片20171216213226.png

最后修改:2019 年 02 月 16 日 09 : 26 PM

2 条评论

  1. Lesun

    同楼下,只会一键装

  2. 夏天烤洋芋

    就只会用一键安装包安装SS

发表评论