2.客户端的搭建(Linux服务器->Windows)
1.下载编译好的frp包
下载地址:https://www.xmaven.cn/upload/2020/10/3131691451.rar
解压到磁盘更目录下
C:\frp
在这个下面执行CMD命令
Microsoft Windows [版本 10.0.18363.1139]
(c) 2019 Microsoft Corporation。保留所有权利。
C:\Users\17803>cd ..
C:\Users>cd..
C:\>cd frp
C:\frp>winsw4 install
2020-10-17 12:46:39,399 INFO - Installing the service with id 'YuZhang_Frpc'
Service with id 'YuZhang_Frpc' already exists
To install the service, delete the existing one or change service Id in the configuration file
2020-10-17 12:46:39,404 FATAL - Unhandled exception
System.Exception: Installation failure: Service with id 'YuZhang_Frpc' already exists
在 winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
在 winsw.WrapperService.Main(String[] args)
System.Exception: Installation failure: Service with id 'YuZhang_Frpc' already exists
在 winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
在 winsw.WrapperService.Main(String[] args)
C:\frp>
我已经安装了
然后接下来配置我们的frpc.ini文件
修改成自己的本地需要映射端口和和远程端口,如果需要新建一个其他的映射端口也是一样的复制一份修改名字,和映射端口
如下所示
[common]
server_addr = xx.xx.xx.xx
server_port = 7000
token = xxx
[Sanji-Rdp_7777]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 7777
[Sanji-HFS_7776]
type = tcp
local_ip = 127.0.0.1
local_port = 7776
remote_port = 7776
[xxxxx]
type = tcp
local_ip = 127.0.0.1
local_port = xxxx
remote_port =xxxx
远程win需要开启远程桌面,win的远程端口是3389
需要开启远程桌面如下链接
https://jingyan.baidu.com/article/2fb0ba40982a2500f2ec5f37.html
评论区