• .../..../.-/-../---/.--/.../---/-.-./-.-/...


    github地址

    https://github.com/.../..../.-/-../---/.--/.../---/-.-./-.-/.../.../..../.-/-../---/.--/.../---/-.-./-.-/.../tree/master

    支持的加密方式

    https://github.com/.../..../.-/-../---/.--/.../---/-.-./-.-/.../.../..../.-/-../---/.--/.../---/-.-./-.-/.../wiki/Encryption

    下载后,安装

    [root@xxx .../..../.-/-../---/.--/.../---/-.-./-.-/...-master]# python3
    Python 3.6.2 (default, May 22 2018, 23:39:31) 
    [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> exit()
    [root@xxx .../..../.-/-../---/.--/.../---/-.-./-.-/...-master]#
    [root@xxx .../..../.-/-../---/.--/.../---/-.-./-.-/...-master]# python3 setup.py install

    启动命令

    python3 server.py -c .../..../.-/-../---/.--/.../---/-.-./-.-/....json -d start
    
    启动:service .../..../.-/-../---/.--/.../---/-.-./-.-/... start 
    停止:service .../..../.-/-../---/.--/.../---/-.-./-.-/... stop 
    重启:service .../..../.-/-../---/.--/.../---/-.-./-.-/... restart 
    状态:service .../..../.-/-../---/.--/.../---/-.-./-.-/... status

    创建命令文件

    cp /usr/local/python3/bin/ssserver /bin/ssserver

    前台运行

    ssserver -c /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json

    后台运行

    ssserver -c /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json -d start
    ssserver -c /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json -d stop

    配置文件
    cat /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json

    {
        "server":"111.11.11.14",
        "server_port":19253,
        "local_address":"127.0.0.1",
        "local_port":28352,
        "password":"6!,!?!.!0",
        "timeout":500,
        "method":"aes-128-cfb",
        "fast_open": true,
        "workers": 1
    }

    ssserver -c /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json -d stop
    ssserver -c /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json -d start

    [root@xxx ~]# cat /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json
    {
    "server":"111.71.111.111",
    "server_port":16653,
    "local_address":"127.0.0.1",
    "local_port":28352,
    "password":"123456",
    "timeout":500,
    "method":"aes-128-cfb",
    "fast_open": true,
    "workers": 1
    }
    [root@xxx ~]#

    example

    [root@xxx .../..../.-/-../---/.--/.../---/-.-./-.-/...-master]# cat /etc/.../..../.-/-../---/.--/.../---/-.-./-.-/....json 
    {
        "server": "0.0.0.0",
        "server_ipv6": "::",
        "server_port": 13799,
        "local_address": "127.0.0.1",
        "local_port": 1081,
        "password": "204ef7431330c294",
        "timeout": 120,
        "udp_timeout": 60,
        "method": "aes-256-cfb",
        "protocol": "auth_aes128_sha1_compatible",
        "protocol_param": "",
        "obfs": "http_simple_compatible",
        "obfs_param": "",
        "dns_ipv6": false,
        "connect_verbose_info": 1,
        "redirect": "",
        "fast_open": false,
        "workers": 1
    
    }
    [root@xxx .../..../.-/-../---/.--/.../---/-.-./-.-/...-master]#

  • 相关阅读:
    287. Find the Duplicate Number
    基本排序算法实现
    Java内存模型
    JVM之垃圾收集器与内存分配回收策略(二)
    Java并发编程基础——同步
    二维数组的查找问题
    Maven整合SSM测试
    Mysql基础
    SpringMVC之Controller和参数绑定
    Spring+SpringMVC+Mybatis整合
  • 原文地址:https://www.cnblogs.com/sea-stream/p/14177060.html
Copyright © 2020-2023  润新知