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