Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Acris committed Apr 28, 2016
1 parent 1a3dd7b commit fdc35cb
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
About manyuser
shadowsocks-rm manyuser for shadowsocks-panel
----------------

Install
-------

install MySQL 5.x.x
Debian / Ubuntu:

`pip install cymysql`
apt-get install python-pip python-m2crypto

create a database named `shadowsocks`
CentOS:

import `shadowsocks.sql` into `shadowsocks`
yum install m2crypto python-setuptools
easy_install pip

if you upgrade from old version make sure:
install MySQL 5.x.x

`pass` is varchar(32) NOT NULL,
`passwd` is varchar(32) NOT NULL,
`last_get_gift_time` not `last_get_gitf_time`
`pip install cymysql`


edit config.py

Example:

import logging

#Config
MYSQL_HOST = 'mengsky.net'
MYSQL_HOST = 'localhost'
MYSQL_PORT = 3306
MYSQL_USER = 'root'
MYSQL_PASS = 'root'
MYSQL_PASS = 'password'
MYSQL_DB = 'shadowsocks'


# Pro node 1 true , others false
PRO_NODE = 0

MANAGE_PASS = 'passwd'
#if you want manage in other server you should set this value to global ip
MANAGE_BIND_IP = '127.0.0.1'
Expand All @@ -40,27 +44,33 @@ Example:
#if you want bind all of ipv4 if '0.0.0.0'
#if you want bind all of if only '4.4.4.4'
SS_BIND_IP = '0.0.0.0'
SS_METHOD = 'rc4-md5'

#LOG CONFIG
LOG_ENABLE = False
LOG_LEVEL = logging.DEBUG
LOG_FILE = '/var/log/shadowsocks.log'


TestRun `cd shadowsocks` ` python servers.py` not server.py

if no exception server will startup. you will see such like
Example:

add: {"server_port": XXXXX, "password":"XXXXX"}
add: {"server_port": XXXXX, "password":"XXXXX", "method":"xxxxx"}


Database user table column
------------------
`passwd` server pass
`sspwd` server pass

`port` server port

`t` last keepalive time
`lastConnTime` last keepalive time

`u` upload transfer
`flow_up` upload transfer

`d` download transfer (upload & download in here now)
`flow_down` download transfer (upload & download in here now)

`transfer_enable` if u + d > transfer_enable this server will be stop (db_transfer.py del_server_out_of_bound_safe)
`transfer` if flow_up + flow_down > transfer this server will be stop (db_transfer.py del_server_out_of_bound_safe)

0 comments on commit fdc35cb

Please sign in to comment.