安装配置Shadowsocks Manyuser + SS-Panel

已弃坑,请移步到ShadowsocksR 多用户版安装教程


SS-Panel前端搭建好了,有了一个“漂亮”的前端了接下来搞后端。

首先需要安装一些依赖。 Centos:

yum install python-setuptools && easy_install pip
yum install m2crypto git

Ubuntu/Debian:

apt-get install python-pip
apt-get install m2crypto git

安装 shadowsocks-manyuser ss-manyuser 项目地址:mengskysama/shadowsocks-rm/manyuser

cd /srv/www/html
git clone -b manyuser https://github.com/mengskysama/shadowsocks-rm.git

配置 shadowsocks-manyuser 编辑 config.py 中的 MySQL 数据库连接信息,一点要和 ss-panel 所配置数据库帐号密码的相同

MYSQL_HOST = 'localhost'  
MYSQL_PORT = 3306  
MYSQL_USER = 'uesr'  
MYSQL_PASS = 'password'  
MYSQL_DB = 'sspanel'

然后运行Shadowsocks Manyuser:

python servers.py

然后,然后的话!

然后尼玛报错了啊!

[email protected]:/srv/www/html/shadowsocks-rm/shadowsocks# python servers.py      Traceback (most recent call last):
  File "servers.py", line 35, in <module>
    from dbtransfer import DbTransfer
  File "/srv/www/html/shadowsocks-rm/shadowsocks/dbtransfer.py", line 5, in <module>
    import cymysql
ImportError: No module named cymysql
[email protected]:/srv/www/html/shadowsocks-rm/shadowsocks#

什么鬼,暂时不搞了! 暂时连不上了,摔个失败的截图

好,继续! 问题得到了处理!傻x了!运行下面的命令:

pip install cymysql

擦再次出错!心好累。。

[email protected]:/srv/www/html/shadowsocks-rm/shadowsocks# python servers.py
ERROR: config not specified
usage: ssserver [OPTION]...
A fast tunnel proxy that helps you bypass firewalls.

You can supply configurations via either config file or command line arguments.

Proxy options:
  -c CONFIG              path to config file
  -s SERVER_ADDR         server address, default: 0.0.0.0
  -p SERVER_PORT         server port, default: 8388
  -k PASSWORD            password
  -m METHOD              encryption method, default: aes-256-cfb
  -t TIMEOUT             timeout in seconds, default: 300
  -a ONE_TIME_AUTH       one time auth
  --fast-open            use TCP_FASTOPEN, requires Linux 3.7+
  --workers WORKERS      number of workers, available on Unix/Linux
  --forbidden-ip IPLIST  comma seperated IP list forbidden to connect
  --manager-address ADDR optional server manager UDP address, see wiki
  --prefer-ipv6          resolve ipv6 address first

General options:
  -h, --help             show this help message and exit
  -d start/stop/restart  daemon mode
  --pid-file PID_FILE    pid file for daemon mode
  --log-file LOG_FILE    log file for daemon mode
  --user USER            username to run as
  -v, -vv                verbose mode
  -q, -qq                quiet mode, only show warnings/errors
  --version              show version information

Online help: <https://github.com/shadowsocks/shadowsocks>

[email protected]:/srv/www/html/shadowsocks-rm/shadowsocks#

弃坑。

请移步到ShadowsocksR 多用户版安装教程

Licensed under CC BY-NC-SA 4.0
最后更新于 Oct 08, 2016 20:07 UTC