Skip to content

Instantly share code, notes, and snippets.

@lylwo317
Forked from truebit/libev-centos6.md
Last active September 30, 2020 06:19
Show Gist options
  • Select an option

  • Save lylwo317/126771948f84744d69b6cd7da8b5ff86 to your computer and use it in GitHub Desktop.

Select an option

Save lylwo317/126771948f84744d69b6cd7da8b5ff86 to your computer and use it in GitHub Desktop.
install shadowsocks-libev on CentOS 6

shadowsocks-libev install on CentOS 6

Content

OpenVZ VPS centos6 install shadowsocket

# build environment
yum install build-essential autoconf libtool openssl-devel gcc git xmlto asciidoc pcre-devel -y
# download shadowsocks-libev and build + install
git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev/
./configure
make && make install
# add init.d service
mkdir -p /etc/shadowsocks-libev
cp ./rpm/SOURCES/etc/init.d/shadowsocks-libev /etc/init.d/shadowsocks-libev
## modify /usr/bin to /usr/local/bin as libev installed to /usr/local/bin by default
sed -i 's|/usr/bin/|/usr/local/bin/|g' /etc/init.d/shadowsocks-libev
chmod +x /etc/init.d/shadowsocks-libev
# modify config
cp ./debian/config.json /etc/shadowsocks-libev/config.json
## explanation:
##{
##    "server":"127.0.0.1", #you vps ip addr
##    "server_port":8838, # vps server port open for ss connection
##    "local_port":1080, # local port connect to ss
##    "password":"yourpasswordforshadowsocks",
##    "timeout":600, #connection timeout
##    "method":"chacha20" # obfuscation method, you could also use 'rc4-md5'(fast, but less secure than chacha20) or 'aes-256-cfb'(slow on router)
##}
vi /etc/shadowsocks-libev/config.json
# start service
/etc/init.d/shadowsocks-libev start
@Mkurbanov
Copy link

problem:

[root@static shadowsocks-libev]# ./configure
-bash: ./configure: No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment