frp一键linux客户端安装脚本,frp 服务端和客户端的下载地址 一键脚本 nginx apache 配置...

命令: /etc/init.d/frps  {start|stop|restart|status|config|version}

FRP 服务端

frp 各版本的下载 ,更换版本号及系统版本就行,自由组合

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_darwin_amd64.tar.gz

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_freebsd_386.tar.gz

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_freebsd_amd64.tar.gz

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_linux_386.tar.gz

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_linux_amd64.tar.gz

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_linux_arm.tar.gz

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_linux_arm64.tar.gz

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_linux_mips.tar.gz

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_linux_mips64.tar.gz

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_linux_mips64le.tar.gz

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_linux_mipsle.tar.gz

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_windows_386.zip

https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_windows_amd64.zip

源码两种打包方式

https://github.com/fatedier/frp/archive/v0.27.0.zip

https://github.com/fatedier/frp/archive/v0.27.0.tar.gz

各系统版本

darwin_amd64               freebsd_386                    freebsd_amd64

linux_386                       linux_amd64

linux_arm                         linux_arm64

linux_mips                      linux_mips64

windows_386                 windows_amd64

frp 已有版本号

0.27.0    0.26.0  0.25.3    0.24.1    0.23.3    0.22.0    0.21.0    0.20.0    0.19.1    0.18.0    0.17.0    0.16.1    0.15.1

0.14.1    0.13.0    0.12.0    0.11.0    0.10.0    0.9.3    0.8.1  0.7.0    0.6.0    0.5.0    0.3.0  0.2.0 0.1.0

最后几个删除线只有源码,

0.27.0  new  Proxy Protocol support plugin unix_domain_socket.frps support custom 404 page.

0.26.0  New  Support Proxy Protocol.  New plugin https2http

0.25.3  Fix panic error when reconnection with tls_enable is true.

0.25.2 Change  Update version of kcp-go.  Fix  Fix connection leak of http health check.

0.25.1Fix Fix a match problem with multilevel subdomain. #1132  frps –log_file is useless. #1125

看配置文件学习,看注释说明

https://github.com/fatedier/frp#configuration-file

服务端配置https://github.com/fatedier/frp/blob/master/conf/frps_full.ini

客户端配置https://github.com/fatedier/frp/blob/master/conf/frpc_full.ini

nginx 配置

添加配置,可以使用泛解析server

{

listen 80;

server_name 域名.com;

location / {

proxy_pass http://127.0.0.1:端口;

proxy_redirect http://$host/ http://$http_host/;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header Host $host;

}

}

apache

frp 的客户端多种多样,配置也一样,路由器能openwrt 就行。

相关文章:

没有相关文章

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
本处高能:因Frp作者更换新的模块,导致Frp v0.18.0与之前的版本不兼容,如果升级请服务同步升级。升级命令: wget --no-check-certificate https://raw.githubusercontent.com/clangcn/onekey-install-shell/master/frps/install-frps.sh -O ./install-frps.sh bash install-frps.sh update 首先感谢@sadoneli S大的帮助完成了frp插件web页面的制作。 WARNING:请仔细阅读完本教程1楼和2楼后再动手安装frp 是一个高性能的反向代理应用,可以帮助您轻松地进行内网穿透,对外网提供服务,支持 tcp, http, https 等协议类型,并且 web 服务支持根据域名进行路由转发。 *因为frp是go语言写的,所以在路由器上使用的时候,请使用虚拟内存,请使用虚拟内存,请使用虚拟内存。 脚本是业余爱好,英文属于文盲,写的不好,欢迎您批评指正。 安装平台:CentOS、Debian、Ubuntu。 已测试过的平台: CentOS 6 32/64bit CentOS 7 32/64bit Debian 6 32/64bit Debian 7 32/64bit Debian 8 32/64bit Ubuntu 14 32/64bit 一、安装命令这个命令是在你自己的服务器上运行的!是在你自己的服务器上运行的!是在你自己的服务器上运行的!不是在路由器里运行的!不是在路由器里运行的!不是在路由器里运行的! wget --no-check-certificate https://raw.githubusercontent.com/clangcn/onekey-install-shell/master/frps/install-frps.sh -O ./install-frps.sh chmod 700 ./install-frps.sh ./install-frps.sh install 二、安装步骤 Loading network version for frps, please wait... frps Latest release file frp_0.8.1_linux_amd64.tar.gz #此步骤会自动获取frp最新版本,自动操作,无需理会 Loading You Server IP, please wait... You Server IP:12.12.12.12 #自动获取你服务器的IP地址 Please input your server setting: Please input frps bind_port [1-65535](Default Server Port: 5443): #输入frp提供服务口,用于服务客户通信 Please input frps dashboard_port [1-65535](Default dashboard_port: 6443): #输入frp的控制台服务口,用于查看frp工作状态 Please input frps vhost_http_port [1-65535](Default vhost_http_port: 80): #输入frp进行http穿透的http服务口 Please input frps vhost_https_port [1-65535](Default vhost_https_port: 443): #输入frp进行https穿透的https服务口 Please input privilege_token (Default: WEWLRgwRjIJVPx2kuqzkGnvuftPLQniq): #输入frp服务器和客户通信的密码,默认是随机生成的 Please input frps max_pool_count [1-200](Default max_pool_count: 50): #设置每个代理可以创建的连接池上限,默认50 ##### Please select log_level ##### 1: info 2: warn 3: error 4: debug ##################################################### Enter your choice (1, 2, 3, 4 or exit. default [1]): #设置日志等级,4个选项,默认是info Please input frps log_max_days [1-30] (Default log_max_days: 3 day): #设置日志保留天数,范围是1到30天,默认保留3天。 ##### Please select log_file ##### 1: enable 2: disable ##################################################### Enter your choice (1, 2 or exit. default [1]): #设置是否开启日志记录,默认开启,开启后日志等级及保留天数生效,否则等级和保留天数无效 设置完成后检查你的输入,如果没有问题按任意继续安装 ============== Check your input ============== You Server IP : 12.12.12.12 Bind port : 5443 Dashboard port : 6443 vhost http port : 80 vhost https port: 443 Privilege token : WEWLRgwRjIJVPx2kuqzkGnvuftPLQniq Max Pool count : 50 Log level : info Log max days : 3 Log file : enable ============================================== 安装结束后显示: Congratulations, frps install completed! ============================================== You Server IP : 12.12.12.12 Bind port : 5443 Dashboard port : 6443 vhost http port : 80 vhost https port: 443 Privilege token : WEWLRgwRjIJVPx2kuqzkGnvuftPLQniq Max Pool count : 50 Log level : info Log max days : 3 Log file : enable # 将上面信息添加到你的路由器frp穿透插件中吧 ============================================== frps Dashboard: http://12.12.12.12:6443/ # 这个是frp控制台访问地址 ============================================== 三、更新命令 ./install-frps.sh update 四、卸载命令 ./install-frps.sh uninstall 五、服务管理命令 /etc/init.d/frps start /etc/init.d/frps stop /etc/init.d/frps restart /etc/init.d/frps status /etc/init.d/frps config /etc/init.d/frps version 七、更多帮助请移步官方帮助文件 https://github.com/fatedier/frp/blob/master/README_zh.md

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值