shadowsocks-manager搭建

dhso
2018/07/05 11:33
统计中

shadowsocks-manager GITHUB地址:

https://github.com/shadowsocks/shadowsocks-manager

要求

  • nodejs8以上

安装

  • From source:
git clone https://github.com/shadowsocks/shadowsocks-manager.git
cd shadowsocks-manager
npm i
  • From npm:
npm i -g shadowsocks-manager

//ssmgr就是安装好的命令

运行

  • 启动ss-manager
ss-manager -m chacha20 -s 0.0.0.0 -u --manager-address 127.0.0.1:6001 &
  • 启动shadowsocks-manager ss服务
cd shadowsocks-manager

node server.js -c /root/.ssmgr/ss.yml &
// ss.yml配置在后面

  • 启动shadowsocks-manager webgui服务
node server.js -c /root/.ssmgr/webgui.yml &
// webgui.yml配置在后面
  • 访问shadowsocks-manager管理界面
http://xxx.xxx.xxx.xxx:6003

ss.yml

type: s

shadowsocks:
  address: 127.0.0.1:6001
  #portRange: 50000-51000,55000,55002

manager:
  address: 0.0.0.0:6002
  password: '123456'

db: 'ss.sqlite'

# db:
#   host: '1.1.1.1'
#   user: 'root'
#   password: 'abcdefg'
#   database: 'ssmgr'

webgui.yml

type: m

manager:
  address: 127.0.0.1:6002
  password: '123456'

plugins:
  flowSaver:
    use: true
  user:
    use: true
  account:
    use: true
  macAccount:
    use: true
  group:
    use: true
  email:
    use: true
    username: '自己的邮件服务器用户'
    password: '自己的邮件服务器密码'
    host: 'smtp.xxx.com'
  webgui:
    use: true
    host: '0.0.0.0'
    port: '6003'
    # site: 'http://xxx.xxx.com'
    # cdn: 'http://xxx.xxx.com'
    # icon: 'icon.png'
    # skin: 'default'
    # googleAnalytics: 'UA-xxxxxxxx-x'
    gcmSenderId: '456102641793'
    gcmAPIKey: 'AAAAGzzdqrE:XXXXXXXXXXXXXX'
  # alipay:
  #   use: true
  #   appid: 2016102102273234
  #   notifyUrl: 'http://xx.xx.com/api/user/alipay/callback'
  #   merchantPrivateKey: ''
  #   alipayPublicKey: ''
  #   gatewayUrl: 'https://openapi.alipay.com/gateway.do'
  # webgui_telegram:
  #   use: true
  #   token: '191374681:AAw6oaVPR4nnY7T4CtW78QX-Xy2Q5WD3wmZ'
  # paypal:
  #   use: true
  #   mode: 'live' # sandbox or live
  #   client_id: 'A382Y5S7J7ZFDGTY'
  #   client_secret: 'A3WjaeQz-8RAJ5b2DsJ4GXb4DMNEA8tg.Dj2thLB-eDjOZj6l-yM2mbM'

db: 'webgui.sqlite'

本文为 dhso 原创

发布在 http://blog.minws.com/shadowsocks-managerda-jian/

如有转载,请标明来源!

作者信息
姓名:dhso
热评文章
最新评论
文章概览