1. 下载frp:https://github.com/fatedier/frp/releases/
  2. 解压,修改服务端配置文件:frps.ini;如下:
    [common]
    # 设置连接端口
    bind_port = 7000 # 设置dashboard服务登陆端口
    dashboard_port = 7500 # 设置dashboard登录信息
    dashboard_user = tao
    dashboard_pwd = 123456 # 设置日志显示级别{debug, info, warn, error)
    log_level = debug # 设置日志最大天数
    log_max_days = 5 # 设置特权模式是否开启,开通后web,ssh等使用都可以直接在客户端设置
    privilege_mode = true # 设置特权模式token值
    privilege_token = 123456 # 设置转发端口
    vhost_http_port = 7200
  3. 复制文件到阿里云服务器,执行命令:
    frps.exe -c frps.ini

    出现 Start frps success 代表运行成功。

  4. 防火墙开放设置的端口;本文设置的端口为:7000,7200,7500。阿里云需要去配置安全组。
  5. 修改frp本地配置文件:frpc.ini,如下:
    [common]
    # 服务器公网ip
    server_addr = 47.97.115.204
    # 服务器设置的端口
    server_port = 7000
    # 默认设置
    admin_addr = 127.0.0.1
    # 本地管理端口,自行修改
    admin_port = 7400 # for privilege mode,和服务端一致
    privilege_token = 123456 # 以下添加了5个web应用
    [workflow]
    type = http
    local_port = 7000
    custom_domains = www.xxx.com # 利用子域名实现多web绑定
    [pay-iis]
    type = http
    local_port = 6666
    custom_domains = a.xxx.com [admin-iis]
    type = http
    local_port = 5500
    custom_domains = b.xxx.com [pay-vs]
    type = http
    local_port = 6000
    custom_domains = d.xxx.com [admin-vs]
    type = http
    local_port = 5000
    custom_domains = e.xxx.com
  6. 执行cmd命令:
    frpc.exe -c frpc.ini

    成功执行后,打开:http://127.0.0.1:7400,访问本地frp管理页面,查看绑定的web应用。状态Status为running的代表启动成功并且在运行中的web应用

  7. 打开浏览器,输入地址,就可以愉快的访问本地web应用了。

本文完。

frp使用(windows+aliyun-windows)的更多相关文章

  1. 用C#创建Windows服务(Windows Services)

    用C#创建Windows服务(Windows Services) 学习:  第一步:创建服务框架 创建一个新的 Windows 服务项目,可以从Visual C# 工程中选取 Windows 服务(W ...

  2. Memory Limits for Windows and Windows Server Releases

    来源:https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).aspx Limits on memory ...

  3. Notice to users of DB Query Analyzer in Windows 7, Windows 8 and Windows 10

        UnlikeWinXP, VISTA, Windows2000, Windows Nt and Win98,Windows 7 / Windows 8 / Windows 10 select  ...

  4. How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows and Windows Server

    转自:https://support.microsoft.com/en-us/help/2696547/detect-enable-disable-smbv1-smbv2-smbv3-in-windo ...

  5. [转载]Memory Limits for Windows and Windows Server Releases

    Memory Limits for Windows and Windows Server Releases This topic describes the memory limits for sup ...

  6. C# windows服务:创建Windows服务(Windows Services)的一般步骤

    C#创建Windows服务(Windows Services) Windows服务在Visual Studio 以前的版本中叫NT服务,在VS.net启用了新的名称.用Visual C# 创建Wind ...

  7. [微软]The latest version of Windows is Windows Sandbox

    The latest version of Windows is Windows Sandbox by Surur @mspoweruser Dec 19, 2018 at 1:40 GMT As h ...

  8. Installing the .NET Framework 3.5 on Windows 8, Windows 8.1 and Windows 10

    Installing the .NET Framework 3.5 on Windows 8, Windows 8.1 and Windows 10 .NET Framework (current v ...

  9. 使用 FRP 反向代理实现 Windows 远程连接

    互联网普及率的日渐攀升与 IPv4 资源的持续减少,现在大部分家庭宽带都不会分配公网 IP ,这使一些网络应用的实现多了些困难,像个人的 NAS 和一些智能家居设备.对于分配公网 IP ,各地运营商的 ...

  10. C#创建、安装、卸载、调试Windows Service(Windows 服务)的简单教程

    前言:Microsoft Windows 服务能够创建在它们自己的 Windows 会话中可长时间运行的可执行应用程序.这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面.这 ...

随机推荐

  1. aiohttp上报:Got more than 8190 bytes (10160) when reading Status line is too long.错误的解决办法

    通过浏览器向web服务传递base64码的图片时遇到参数过长的问题? 解决办法:查看aiohttp的源码:aiohttp/http_parser.py下找到: class HeadersParser: ...

  2. Web前端基础学习-2

    盒子模型 在页面中,我们将所有的元素全部看做是一个盒子,页面布局就是将大大小小不同的盒子堆砌在一起,而一个盒子由以下几部分组成: padding:内边距,内容到边框的距离: margin:外边距,其他 ...

  3. 一、@Html.DropDownList

    一.Html.DropDownList 通过linq 将datatable转换下拉列表 //查询城市 string CityId = WebCommon.Public.GetAdminCityId() ...

  4. centos7下的Firewalld

    一.介绍 防火墙守护 firewalld 服务引入了一个信任级别的概念来管理与之相关联的连接与接口.它支持 ipv4 与 ipv6,并支持网桥,采用 firewall-cmd (command) 或 ...

  5. linux ---pgbouncer的安装和配置

    pgbouncer是一款轻量级针对postgresql的数据库连接工具,可以对客户端的连接做限制,防止恶意连接,另外也可以减少数据库的实际连接数,从而减少数据库的开销. 环境: centos 6.5 ...

  6. zabbix 基于sendmail发送邮件相关问题

    先看一下脚本 #!/bin/bash to=$ subject=$ body=$ @qq.com smtp=smtp.qq.com passwd=xxxxxxxxx echo `date " ...

  7. iview table的render()函数的用法

    语法:render:(h,params)=>{} render:(h,params) => { return h(" 定义的元素 ",{ 元素的性质 }," ...

  8. PHP浮点精度问题

    使用php+ - * /计算浮点数的时候,可能会遇到一些计算结果错误的问题,如下: <?php echo intval(0.58 * 100); //输出57 解决办法 <?php ech ...

  9. Java多线程状态切换

    原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/11426573.html 线程状态 NEW RUNNABLE BLOCKED WAITING TIMED ...

  10. web,xmlSecurity

    <?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://w ...