Detailed steps for building the shadowsocks-libev server under CentOS

Source: Internet
Author: User
Tags centos git clone

1. Install necessary components

Run the yum install build-essential autoconf libtool openssl-devel gcc-y command on centos.

2. Install git

Run yum install git-y on centos.

If it appears after execution

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
No package git available.
Nothing to do

Then the software warehouse of the system needs to be updated.


For example, RPMForge is added.

Installation:

Yum install yum-priorities
After installation, the cat/etc/yum/pluginconf. d/priorities. conf file,
Confirm that this line is in the file [main] enabled = 1

Download the rpmforge installation package

Wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Find different packages in different architectures
Rpm-I rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Now you can use the rpmforge software repository.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
After Installing git, execute git -- version. If the current number is published, the installation is successful.

3. Download and compile the shadowsocks-libev source code package

Git clone https://github.com/madeye/shadowsocks-libev.git
Cd shadowsocks-libev
./Configure
Make & make install

4. Run shadowsocks.

Nohup/usr/local/bin/ss-server-s IP address-p port-k password-m encryption &
For example: nohup/usr/local/bin/ss-server-s × .home4love.com-p 8981-k admin888-m aes-256-cfb &

5. Add to start

Echo "nohup/usr/local/bin/ss-server-s IP address-p port-k password-m encryption mode &">/etc/rc. local
[About client]

The shadowsocks client is not mature yet. I recommend it to you.
Http://sourceforge.net/projects/shadowsocksgui/files/dist/
[About encryption method]

If you do not write "-m aes-256-cfb" in the startup command, the default encryption method is table, it is safer to select the aes-256-cfb, in fact, there is almost no impact on speed.

[About changing the port, password, and encryption method]
The startup command already contains this information. If you change the information, do not forget to change the information during startup.
[About service termination]
Ps will see the process of "ss-server". kill the PID, for example, kill 5082.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.