Build Shadowsocks tutorials with Ss-manyuser and Ss-panel in Linux

Source: Internet
Author: User
Tags create database git clone


II. Installation

Mkdir/data
Cd/data
git clone https://github.com/mengskysama/shadowsocks.git Backend
git clone https://github.com/orvice/ss-panel.git Front
III. Configuration

Front

# 1. Create a database and set up a local user shadowsocks@localhost, and give permissions
CREATE DATABASE IF not EXISTS shadowsocks DEFAULT CHARSET UTF8 COLLATE utf8_general_ci;
GRANT all privileges in shadowsocks.* to ' shadowsocks ' @ ' localhost ' identified by ' password ';

# 2. Import SQL
CD Front
Cat Sql/*.sql > Merged.sql

# Login to MySQL
Mysql>use shadowsocks;
Mysql>source Path/to/merged.sql;

# 3. Write database configuration information to lib/config.php
Here to mention:

Userid=1 user is the administrator, it is best to change his port 50000 to 15000, the password is direct MD5, you can modify.

The passwd field is the connection password for SS.

Backend

# Prepare the Environment
Yum-y Install Python-pip M2crypto
Pip Install Cymysql


# 2. Modify Database Configuration
CD Shadow Socks
Vim config.py

# 2.5 Optional operation
# because SS may be distributed across multiple servers, we need an account that is remote enough to manage MySQL
# just the database named Shadowsocks, we now create a remote login to the account and give permissions
# name is called Laogao!
CREATE USER laogao@ '% ' identified by ' Laogao ';

# Give the right permissions
GRANT select,update on phpergao.* to laogao@ '% ';

# 3. Run SS
Python server.py

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.