frp使用(windows+aliyun-windows)
- 下载frp:https://github.com/fatedier/frp/releases/
 - 解压,修改服务端配置文件: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 - 复制文件到阿里云服务器,执行命令:
frps.exe -c frps.ini
出现 Start frps success 代表运行成功。
 - 防火墙开放设置的端口;本文设置的端口为:7000,7200,7500。阿里云需要去配置安全组。
 - 修改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 - 执行cmd命令:
frpc.exe -c frpc.ini
成功执行后,打开:http://127.0.0.1:7400,访问本地frp管理页面,查看绑定的web应用。状态Status为running的代表启动成功并且在运行中的web应用
 - 打开浏览器,输入地址,就可以愉快的访问本地web应用了。
 
本文完。
frp使用(windows+aliyun-windows)的更多相关文章
- 用C#创建Windows服务(Windows Services)
		
用C#创建Windows服务(Windows Services) 学习: 第一步:创建服务框架 创建一个新的 Windows 服务项目,可以从Visual C# 工程中选取 Windows 服务(W ...
 - 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 ...
 - 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 ...
 - 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 ...
 - [转载]Memory Limits for Windows and Windows Server Releases
		
Memory Limits for Windows and Windows Server Releases This topic describes the memory limits for sup ...
 - C# windows服务:创建Windows服务(Windows Services)的一般步骤
		
C#创建Windows服务(Windows Services) Windows服务在Visual Studio 以前的版本中叫NT服务,在VS.net启用了新的名称.用Visual C# 创建Wind ...
 - [微软]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 ...
 - 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 ...
 - 使用 FRP 反向代理实现 Windows 远程连接
		
互联网普及率的日渐攀升与 IPv4 资源的持续减少,现在大部分家庭宽带都不会分配公网 IP ,这使一些网络应用的实现多了些困难,像个人的 NAS 和一些智能家居设备.对于分配公网 IP ,各地运营商的 ...
 - C#创建、安装、卸载、调试Windows Service(Windows 服务)的简单教程
		
前言:Microsoft Windows 服务能够创建在它们自己的 Windows 会话中可长时间运行的可执行应用程序.这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面.这 ...
 
随机推荐
- number框
			
因为系统的number框无法设置样式,所以休息无聊时写了一个简单的模拟number框的插件,效果不是很完善,有一些功能可能没注意到 // 简单的模拟number框插件 // 布局: // <di ...
 - APScheduler的简单记录
			
此工具作为 定时任务调度 系统,在日常业务中经常使用,如定时获取第三方数据,定时清理数据 等等: 定时任务 和 业务逻辑 编写方式 一般有2种: 以 定时 清理db数据为例,在flask中,如下: 1 ...
 - android jni控制gpio (rk3288)
			
1.添加驱动程序 2.编写jni c程序编译为库给java调用 3.app调用jni静态链接库操作底层驱动 1.添加驱动程序 修改/work/rk3288/firefly-rk3288_android ...
 - httptesting HTTP(s)接口自动化测试框架
			
坐标: https://github.com/HttpTesting/pyhttp # HttpTesting 
			
ES6 默认导出(只能一次)与默认导入 默认导出: // 当前文件模块为 test.js // 定义私有成员 a 和 c let a = 10 let c = 20 // 外界访问不到变量 d ,因为 ...
 - Vue学习笔记【30】——Vue路由(watch属性的使用)
			
考虑一个问题:想要实现 名 和 姓 两个文本框的内容改变,则全名的文本框中的值也跟着改变:(用以前的知识如何实现???) 监听data中属性的改变: <div id="app&quo ...
 - 洛谷P1364 医院设置(Floyd)
			
题目描述 设有一棵二叉树,如图: 其中,圈中的数字表示结点中居民的人口.圈边上数字表示结点编号,现在要求在某个结点上建立一个医院,使所有居民所走的路程之和为最小,同时约定,相邻接点之间的距离为l.如上 ...
 - SPOJ_QTREE系列题解
			
QTREE4 #pragma comment(linker, "/STACK:102400000,102400000") //#include<bits/stdc++.h&g ...