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 会话中可长时间运行的可执行应用程序.这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面.这 ...
随机推荐
- 别再说你不会ElasticSearch调优了,都给你整理好了
ES 发布时带有的默认值,可为 ES 的开箱即用带来很好的体验.全文搜索.高亮.聚合.索引文档 等功能无需用户修改即可使用,当你更清楚的知道你想如何使用 ES 后,你可以作很多的优化以提高你的用例的性 ...
- sql 根据身份证判断年龄是否小于18岁
SELECT *, Age= datediff(yy,cast(case when substring(PersonalId,,) ') /*若第7位不是'1'或'2'则表示是15位身份证编码规则*/ ...
- JS匿名包装器(自执行匿名函数)
一.获得循环序号 for(var i = 0; i < 10; i++) { (function(e) { setTimeout(function() { console.log(e); }, ...
- python 环境变量的配置
1. 打开python安装目录 2.将python.exe重名为python3.exe 3.在环境变量的path中,添加python3的目录 4.将pip.exe的目录页添加到path中,即可完成环境 ...
- 通过cmd命令启动appium server,appium server安装过程
电脑上已安装了appium desktop版,想在移动端自动化的过程中,通过脚本启动appium server,环境准备: 1.确保电脑安装了node.js,目前用的是node12 2.安装JDK,且 ...
- js正则去掉所有html标签/某一特定字符
java后台 String str=hello你好吗,我很好 thank you????噼安胖胖 "; String reg = "[\ud83c\udc00-\ud ...
- jsp详解(3个指令、6个动作、9个内置对象、11个隐式对象)
jsp概述SP全称是Java Server Pages,它和servle技术一样,都是SUN公司定义的一种用于开发动态web资源的技术.JSP实际上就是Servlet. jsp=html+jav ...
- PHP disk_total_space() 函数
定义和用法 disk_total_space() 函数返回指定目录的磁盘总容量,以字节为单位. 语法 disk_total_space(directory) 参数 描述 directory 必需.规定 ...
- sql语句采用数字方式的排序
select z.xymc 省份,y.xm 办理人,s.bt 标题,x.createtime 创建时间, nvl2(t.jssj,t.jssj,'未接收') 接收时间 fr ...
- linux系统的文件保护
一些文件在Linux下看上去可能一切正常,但当您尝试删除的时候,居然也会报错,就像下边一样: [root@linux236 root]# ls -l 1.txt-rw-r--r-- 1 root ro ...