Ubuntu 16.04 x86_64 Build SS Server

Source: Internet
Author: User

It is not so easy to know if you have tried it yourself. Installing the SS server requires a Python environment

1. Environment: Python 2.6 or 2.7

2、下载和安装pip wget https: //github .com /pypa/pip/archive/8 .1.2. tar .gz --no-check-certificate #解压 tar -xzvf 8.1.2. tar .gz #切换目录 cd pip-8.1.2 #安装pip python setup.py install#如报错则安装下第三方模块
> wget Https://bootstrap.pypa.io/ez_setup.py-O-| Python
3. Install SS after finishing pip install shadowsocks4, SS-related configuration (multi-user) to create a JSON file, write configuration information (multi-user example) {      "server" : "服务器ip" ,      "local_address" : "127.0.0.1" ,      "local_port" :1080,      "port_password" :{           "11111" : "11111111" ,           "端口号" : "密码密码" ,           "端口号" : "密码"      },      "timeout" :300,      "method" : "aes-256-cfb" ,      "fast_open" : false }Save exit, start Ssserver ssserver -c /root/config .json -d start #启动 ssserver -d stop #停止 ssserver -d restart #重启p.s.# python setup.py install    This step may cause an error

Python's third-party module typically comes with setup.py files, and in a Windows environment we only need to use commands

CD C:\Temp\foo

Python setup.py Install

Two commands to complete the installation of the third-party module. The first CD command will currently switch to the directory of the third-party module to be installed (assuming that the third-party module is C:\Temp \foo), and the second command executes the installation. The error message "Importerror:no module named Setuptools" may appear during installation, which is a common error message that novice users encounter. Don't worry, this is because Python does not have the Setuptools module installed by default in the Windows environment, which is also a third-party module. For Http://pypi.python.org/pypi/setuptools.

If it is a Windows environment, download the exe form of the installation program can be (fool-like installation, very fast). Once Setuptools is installed, it is easy to install a variety of third-party modules by running Python setup.py install.

If it is a Linux environment, it may be a little more trouble, it may be the author's ability is not enough. Here's a brief look at the installation process for Linux under Setuptools. Also in http://pypi.python.org/pypi/setuptools this place download Setuptools-0.6c11-py2.7.egg file to local, use chmod +x The Setuptools-0.6c11-py2.7.egg command makes the file an executable file. Then run the sudo sh setuptools-0.6c11-py2.7.egg command to complete the installation.

Most Linux distributions come with wget.

Download ez_setup.py and run it using the target Python version. The script would download the appropriate version and install it for you:

> wget Https://bootstrap.pypa.io/ez_setup.py-O-| Python

Note that you'll be need to invoke the command with Superuser privileges-to-install to the system Python:

> wget Https://bootstrap.pypa.io/ez_setup.py-O-| sudo python

Alternatively, Setuptools May is installed to a user-local path:

> wget Https://bootstrap.pypa.io/ez_setup.py-O-| Python---user

Ubuntu 16.04 x86_64 Build SS Server

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.