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 会话中可长时间运行的可执行应用程序.这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面.这 ...
随机推荐
- casperjs-options
The Casper class The easiest way to get a casper instance is to use the module's create() method: 最简 ...
- JavaScript寻找最长的单词算法
返回提供的句子中最长的单词的长度. 返回值应该是一个数字. 第一步,使用String.prototype.split()方法将字符串转换成数组 function findLongestWord(str ...
- Codeforces 1101D 点分治
题意:有一颗树,每个点有一个点权,边权都是1,问路径上的所有点的gcd不是1的最长路径是多少? 思路:之前补这道题的时候,用分解质因数 + 树形DP做的,其实用点分治可以更暴力一点.对于这类统计树上路 ...
- C++学习笔记【1】——"\n"与endl的区别是什么?
#include <iostream> using namespace std; int main() { cout << "Hello, world!" ...
- linux-ftp install
ftp安装 yum install vsftpd vi /etc/vsftpd/vsftpd.conf (可以先备份,但不要放在此目录下,不然启动vsftpd的时候 也会加载其备份文件,报启动错误,因 ...
- gene network analysis
基因表达分析包括3个层次[68], 首先是单基因水平, 即比较对照组与实验组的每个基因是否存在表达差异, 这主要指差异基因表达分析; 其次是多基因水平, 如按照基因的共同功能.相互作用.共同表达等 ...
- Day One-Python基础
Python第一节 安装教程就不发了,太心累了!大家可以上百度查,网上都会有 python种类 JavaPython cPython pypy 两种编码 字节码 和 机器码 unicode utf8 ...
- Vue学习笔记【30】——Vue路由(watch属性的使用)
考虑一个问题:想要实现 名 和 姓 两个文本框的内容改变,则全名的文本框中的值也跟着改变:(用以前的知识如何实现???) 监听data中属性的改变: <div id="app&quo ...
- Codeforces 789e The Great Mixing (bitset dp 数学)
Sasha and Kolya decided to get drunk with Coke, again. This time they have k types of Coke. i-th typ ...
- 优雅的SpringMVC和Restful
一.前言 1.前段时间一直在写微信小程序的请求,终于把客户端的请求弄好了,可是服务端呢,该怎么写,纠结了半天,用servlet暂时写好了一个:http://www.cnblogs.com/JJDJJ/ ...