ssmgr

日期 2019-02-23 默认分类 作者 donny 共0评论

系统 Ubuntu 18.10 x64
安装 Node.js v10.x: https://github.com/nodesource/distributions

    # Using Ubuntu
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs

centos :curl -sL https://rpm.nodesource.com/setup_10.x | bash -
检测 node -vnpm -v

安装 shadowsocks-Python https://huisekeren.org/1205.html

 wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log

检测 ssserver -m aes-256-cfb -p 12345 -k abcedf --manager-address 127.0.0.1:6001

端口:12345 密码:abcedf  , `lsof -i:12345` 

进去

cd /root
mkdir /root/.ssmgr
cd /root/.ssmgr/

新建 vi ss.yml

type: s
shadowsocks:
  address: 127.0.0.1:6001
manager:
  address: 0.0.0.0:6002  ##公网IP
  password: '123456'
db: 'db.sqlite'

新建 web.yml

type: m
manager:
  address: 0.0.0.1:6002  ##公网ip
  password: '123456'
plugins:
  flowSaver:
    use: true
  user:
    use: true
  account:
    use: true
  email:
    use: true
    type: 'smtp'
    username: 'username'
    password: 'password'
    host: 'smtp.your-email.com'
  webgui:
    use: true
    host: '198.13.41.22' ##公网ip
    port: '80'
    site: 'http://198.13.41.22'##公网ip
    # icon: 'icon.png'
    # skin: 'default'
    # googleAnalytics: 'UA-xxxxxxxx-x'
    # gcmSenderId: '476902381496'
    # gcmAPIKey: 'AAAAGzddLRc:XXXXXXXXXXXXXX'
db: 'webgui.sqlite'
# 从 0.30 开始需要配置 redis
redis:
  host: 'your.redis.host'
  port: 6379
  password: 'yourRedisPassword'
  db: 0

    

安装 mgr

npm i -g shadowsocks-manager 

如果报错

sudo npm i -g shadowsocks-manager --unsafe-perm 

安装 screen

yum -y install screen

apt install screen

如果报错没有 yum

  apt install yum

启动 ss

 screen -dmS ss ssserver -m aes-256-cfb -p 12345 -k abcedf --manager-address 127.0.0.1:6001

检查端口是否启动成功 lsof -i:6001

启动 ss.yml ssmgr -c ss.yml
后台启动 ss.yml screen -dmS ss ssmgr -c ss.yml kill -9
安装 宝塔面板

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh

ubantu

sudo apt-get install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh

giftcard:

use: true

ssmgr -c web.yml ssmgr -c ss.yml

yum -y install screen




-dmS ssmgr ssmgr -c /root/.ssmgr/ss.yml

lsof -i:6001

apt install yum

wget -O redisutil.sh http://bt.dayuanren.net/redisutil/install.sh && bash redisutil.sh install

人生在世,错别字在所难免,无需纠正。