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 会话中可长时间运行的可执行应用程序.这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面.这 ...
随机推荐
- 如何优雅地在React中处理事件响应&&React绑定onClick为什么要用箭头函数?
React绑定onClick为什么要用箭头函数? https://segmentfault.com/q/1010000010918131 如何优雅地在React中处理事件响应 https://segm ...
- 11.Container With Most Water (Array; Two-Pointers)
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). ...
- nodejs包高效升级插件npm-check-updates
一.安装 npm install -g npm-check-updates 或 cnpm install -g npm-check-updates 二.使用 ncu crypto ^0.0.3 → ^ ...
- 五、Redis五种类型 - 字符串类型
1.介绍: 字符串类型是Redis中最基本的数据类型,可以存储任何形式的字符串数据,最大容量是512MB. key 和 value 都是区分大小写的. 2.命令介绍 (1).赋值: set key v ...
- ivew-admin 点击预览图片
1. ivew-admin table { title: '产品图片', key: 'avatar1', align: 'center', render: (h, params) => { re ...
- 【串线篇】概述SpringMvc和spring整合
SpringMVC和Spring整合的目的:分工明确: SpringMVC的配置文件就来配置和网站转发逻辑以及网站功能有关的(视图解析器,文件上传解析器,支持ajax,xxx):springmvc.x ...
- 属性.native用于解决第三方el组件库@click事件无效
描述 有时发现用一些第三方的组件库时,例如一个封装好的button按钮<el-butten>,绑定点击事件却没有任何作用,这时便需要加 .native 原因: v-on 是对 Vue 的事 ...
- 浅谈maven自动化构建工具
转载https://blog.csdn.net/zxm1306192988/article/details/76209062 Maven是什么[what] 1.Maven 是 Apache 软件基金会 ...
- Hands Off for Mac如何卸载?完全卸载Hands Off的方法
Hands Off for Mac如何卸载?hands off是一款超好用的防火墙软件,在Mac系统上强大且易用,能够控制所有应用的网络连接和文件系统访问,保护我们的隐私数据和系统安全性,如果不需要了 ...
- nucleus plus代码学习
int.S: ;************************************************************************ ;* ;* FUNCTION ;* ; ...