zoukankan      html  css  js  c++  java
  • frp内网穿透组建*访问

    内网穿透,frp介绍请移步搜索引擎,这里直接干货

    1,下载地址 https://github.com/fatedier/frp/releases

      

    2,复制除了window平台的文件

    3,修改frps的执行权限

    chmod u+x frps 

    3,修改 frps.ini 做服务器配置

    [common]
    bind_addr = 0.0.0.0 -- 本机网卡
    bind_port = 7000 -- 连接端口
    vhost_http_port = 8888 -- http端口

    4,启动服务

    如下即可成功

    [root@mini frp]# ./frps -c frps.ini
    2020/04/23 09:31:12 [I] [service.go:141] frps tcp listen on 0.0.0.0:7000
    2020/04/23 09:31:12 [I] [root.go:205] start frps success

    查看  netstat -tunlp

    tcp6 0 0 :::8888 :::* LISTEN 15792/./frps
    tcp6 0 0 :::7000 :::* LISTEN 15792/./frps

    5,客户端连接

    [common]
    server_addr = abeiyun
    server_port = 7000

    [web02]
    type = http
    local_ip = 127.0.0.1
    local_port = 8887
    use_encryption = false
    use_compression = false
    custom_domains = [your ip]

    代理tcp如mysql

    [tcp_mysql]
    type = tcp
    local_ip = 127.0.0.1
    local_port = 3306
    remote_port = 3306

    服务器查看端口

    tcp6       0      0 :::3306                 :::*                    LISTEN      15792/./frps     

    *******************************************************************************************************************************

    感谢阿贝云提供的免费云服务器和免费虚拟主机,1C1G5M配置,搭配内网穿透,真香,看视频听歌曲无压力,*

    运行起来也相当流畅,网速个人使用是真的赞,欢迎大家使用

    *******************************************************************************************************************************

  • 相关阅读:
    浅谈Java的开放封闭原则
    Gson 和 Fastjson 你不知道的事
    mac 开发必备软件(不断update ing...)
    fastJson泛型如何转换
    springboot 学习笔记(二)--- properties 配置
    springboot 学习笔记(一)
    mac 安装MySQL
    mybatis 注解快速上手
    svn 冲突解决
    java画图输出到磁盘
  • 原文地址:https://www.cnblogs.com/zqq1234/p/12763839.html
Copyright © 2011-2022 走看看