zoukankan      html  css  js  c++  java
  • 上网配置方式

    使用方式

    运行以下脚本即可
    (v2 ay删除)

    curl -Ls https://raw.githubusercontent.com/v2fly/fhs-install-v2
    ay/master/install-release.sh | sudo bash
    

    id

    运用指令:cat /proc/sys/kernel/random/uuid 创建一个用户 id ,并记住这个id号

    [root@vultr ~]# cat /proc/sys/kernel/random/uuid 
    08ef6234-dcc0-45d1-9954-f9490cb2beb2
    

    配置

    配置文件路径为/usr/local/etc/v2 ay/config.json

    {
      "inbounds": [{
        "port": 12345,
        "protocol": "vmess",
        "settings": {
          "clients": [
            {
              "id": "08ef6234-dcc0-45d1-9954-f9490cb2beb2",
              "level": 1,
              "alterId": 64
            }
          ]
        }
      }],
      "outbounds": [{
        "protocol": "freedom",
        "settings": {}
      },{
        "protocol": "blackhole",
        "settings": {},
        "tag": "blocked"
      }],
      "routing": {
        "rules": [
          {
            "type": "field",
            "ip": ["geoip:private"],
            "outboundTag": "blocked"
          }
        ]
      }
    }
    

    重启v2 ay

    启动

    systemctl start v2
    ay
    

    停止

    systemctl stop v2
    ay
    

    重启

    systemctl restart v2
    ay
    
  • 相关阅读:
    Zookeeper java API
    Zookeeper 安装与配置
    Zookeeper 架构
    HBase 优化
    HBase 与 MapReduce 整合
    Hbase protobuf Java API
    HBase数据库设计
    Fork/Join并发处理框架
    并发容器Map
    Redis缓存穿透、缓存击穿和雪崩
  • 原文地址:https://www.cnblogs.com/liuyang95/p/14870664.html
Copyright © 2011-2022 走看看