【在linux中】linux中shadowsocks-libev编译安装详解

更新时间:2020-11-02    来源:php安装    手机版     字体:

【www.bbyears.com--php安装】


在编译包之前,我们先确认编译所需的包是否都已安装, 我们以CentOS为例

安装依赖包

$ yum install -y wget gcc gcc-c++ make automake autoconf libtool build-essential libtool \
curl curl-devel unzip zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel
编译autoconf
由于CentOS 6.5版本默认安装的autoconf版本是autoconf-2.63-5.1.el6.noarch, 而我们编译源码需要的版本是2.67及以上版本, 我们从这里下载最新的源码包来编译安装

$ wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz
$ tar zxvf autoconf-latest.tar.gz
$ cd autoconf-2.69
$ ./configure --prefix=/usr
$ make && make install
下载源码包
shadowsocks-libev 项目主页
下载源码包并解压

$ wget https://github.com/shadowsocks/shadowsocks-libev/archive/master.zip
$ unzip master.zip
编译源码

$ cd shadowsocks-libev-master
$ ./autogen.sh
$ ./configure --prefix=/usr
$ make && make install
编辑配置文件

{
    "server":"IP Address",
    "server_port":8388,
    "local_port":7070,
    "password":"your password",
    "method":"aes-256-cfb",
    "timeout":600,
    "fast_open":true
}
开启服务

$ service shadowsocks-libev start

本文来源:http://www.bbyears.com/jiaocheng/108417.html

热门标签

更多>>

本类排行