找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 5933|回复: 1

centos7搭建frps内网穿透服务

[复制链接]
发表于 2022-9-15 23:20:43 | 显示全部楼层 |阅读模式
一、安装frps服务端:


1、新建一个存放目录


Bash
1 # mkdir frps
2、拉取一键搭建脚本


Bash
# wget --no-check-certificate https://raw.githubusercontent.co ... rps/install-frps.sh -O ./install-frps.sh
3、增加脚本权限


Bash
# chmod 700 ./install-frps.sh
4、安装


Bash
1 # ./install-frps.sh install



之后他会让你输一些参数,全部参数都有默认值,直接回车就是输入默认值:


Python
Please input frps bind_port [1-65535](Default Server Port: 5443): #输入frp提供服务的端口,用于服务器端和客户端通信,默认即可
Please input frps vhost_http_port [1-65535](Default vhost_http_port: 80): #输入frp进行http穿透的http服务端口,建议选择其他端口,默认的80端口给Nignx,然后用Nginx代理frp的http端口
Please input frps vhost_https_port [1-65535](Default vhost_https_port: 443): #输入frp进行https穿透的https服务端口,同上面的80端口类似,建议分配其他端口,然后通过Nginx代理此端口
Please input frps dashboard_port [1-65535](Default dashboard_port: 6443):#输入frp的控制台服务端口,用于查看frp工作状态,默认即可


Please input dashboard_user (Default: admin):#登录控制台的用户名,默认即可
Please input dashboard_pwd (Default: arepR7VZ):#登录控制台的密码,如果记不住默认的建议修改




Please input privilege_token (Default: 9e2UAeWa6hxrwdc):#输入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]): 默认即可
Please input frps log_max_days [1-30](Default log_max_days: 3 day): 默认即可
##### Please select log_file #####
1: enable
2: disable
#####################################################
Enter your choice (1, 2 or exit. default [1]):默认即可


安装完毕后会弹出以下内容,标明了具体信息,到此服务端操作全部完成。
==============================================
You Server IP      : X.X.X.X
Bind port          : 5443
KCP support        : true
vhost http port    : 8085
vhost https port   : 4435
Dashboard port     : 6443
token              : 9e2UAeWa6hxrwdc
tcp_mux            : true
Max Pool count     : 50
Log level          : info
Log max days       : 3
Log file           : enable
==============================================
frps Dashboard     : http://X.X.X.X:6443/
Dashboard user     : admin
Dashboard password : admin
==============================================




frps status manage : frps {start|stop|restart|status|config|version}
Example:
  start: frps start # 启动frps命令
   stop: frps stop # 停止frps命令
restart: frps restart # 重启frps命令


[root@root frps]#



至此,安装完成,可以访问ip地址+控制台端口查看(如果是阿里云腾讯云的服务器或者服务器已安装宝塔面板的,记得在安全组放行以上的配置的端口,否则无法访问),见下图









二、安装客户端:
下载客户端软件:
Mac版本
https://github.com/fatedier/frp/releases/download/v0.20.0/frp_0.20.0_darwin_amd64.tar.gz

Win版本
https://github.com/fatedier/frp/releases/download/v0.20.0/frp_0.20.0_windows_386.zip

Linux版本
https://github.com/fatedier/frp/releases/download/v0.20.0/frp_0.20.0_linux_amd64.tar.gz



下载完成后解压,找到 frpc.ini 文件
修改 frpc.ini 文件,假设 frps 所在的服务器的 IP 为 127.0.0.1,local_port 为本地机器上 web 服务对应的端口, 绑定自定义域名mock.test.com
以下为我本地的配置,可做参考:
Bash
[common]
server_addr = 127.0.0.1
server_port = 5443
token = 9e2UAeWa6hxrwdc




# 通过tcp的方式可以不使用域名的情况下进行内网穿透,直接访问http://127.0.0.1:8080即可
# tcp穿透需要设置remote_port(为将服务器的8080端口绑定到你的穿透服务,此处的8080端口也需要在防火墙中放开访问权限)
[mock-tcp]
type = tcp
local_ip = 172.18.50.59
local_port = 8089
remote_port = 8080
# custom_domains = mock.frp.test.com




[mock-http]
type = http
local_ip = 172.18.50.59
local_port = 8089
custom_domains = mock.frp.test.com




[web]
type = http
local_ip = 172.18.50.59
local_port = 8091
custom_domains = api.frp.test.com



修改完成后,保存。然后启动 frpc





三、启动客户端:
liunx启动客户端命令:
./frpc -c ./frpc.ini    ---- ini文件与执行文件在同一目录
win启动客户端命令:
frpc.exe -c ./frpc.ini



注意:frp.test.com这个二级域名需要提前在域名解析中进行A记录解析,见下图:















通过浏览器访问 http://mock.frp.test.com:8085 即可访问到处于内网机器上的 web 服务。


我们通过服务器控制台就可以看到有客户端已经连接了,见下图:












到此就完成了frp的客户端搭建和连接,完成了内网穿透服务。





四、设置客户端自启动:


Linux下添加frp内网穿透工具开机启动


在/etc/rc.local里面添加/home/frp/frps -c /home/frp/frps.ini (文件的具体路径根据实际情况填写),终端里面输入下面的命令,或者把文件下载回本地修改后重新上传覆盖源文件。


vim /etc/rc.local



Windows系统下添加frp内网穿透工具为开机启动项


因为Windows系统下从命令行启动frp内网穿透工具后,如果关闭命令行的黑窗口,frp内网穿透服务就停止了,并且任务栏上一直有个命令行窗口也很不方便,所以要开机后启动并且要隐藏frp内网穿透工具的窗口,方法是这样的:
新建一个文本文件,文件内写入如下内容,frp的文件路径根据自己的实际情况修改,然后重命名这个文本文件为frp.vbs ,注意txt的扩展名也要改为vbs,然后把这个frp.vbs放到Windows的启动目录里面。   
Windows的启动目录位于“C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp”(如果找不到这个目录可以在CMD运行里面输入:     “shell:startup” 或者输入“%programdata%\Microsoft\Windows\Start Menu\Programs\Startup”)
Bash
set ws=WScript.CreateObject("WScript.Shell")
ws.Run "d:\frpc.exe -c d:\frpc_net.ini",0



五、自定义域名访问:


上面我们发现连接内网还是需要 输入 8085端口,而且域名是nginx上配置的三级域名,其实我们可以通过Nginx来反向代理一下,这样就可以自己的顶级域名,并通过80端口来访问了。
1、Nginx新建一个虚拟主机配置,或者直接改默认的主机配置也可以
在Nignx 的listen 后 增加 default_server 配置,用来监听默认情况下所有来自解析到该服务器的域名
然后在 server 段内增加 反向代理配置
在nginx子配置文件目录下新增一个名为:frps.conf文件
vim frps.conf
Bash
# frps内网穿透服务--测试服务为mock服务
server{
    listen 80;
    listen 8086;
    listen 443 ssl http2;
    server_name mock.frp.test.com;
    location /{
       proxy_redirect off;
       proxy_set_header Host $host;
       proxy_set_header X-Real-IP $remote_addr;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_read_timeout 300;
       proxy_pass http://127.0.0.1:8085;
       access_log /www/wwwlogs/access8085.log;
       error_log /www/wwwlogs/access_error8085.log;
    }
}



这样Nginx 将接管域名的绑定工作,监听到80端口的网站后,会将网站转发到 本机的frp 8085 端口





六、frp进阶配置(未实际测试,摘抄于原作者):


1、转发 DNS 查询请求
DNS 查询请求通常使用 UDP 协议,frp 支持对内网 UDP 服务的穿透,配置方式和 TCP 基本一致。
修改 frpc.ini 文件
Bash
1 [common]
2 server_addr = 180.28.83.22 #这里是服务器的IP
3 server_port = 5443 #服务器的连接端口
4 token = LnDeMkeiIedDeDw #服务器的连接Token
5
6 [dns]
7 type = udp
8 local_ip = 8.8.8.8
9 local_port = 53
10 remote_port = 6000



2、转发 Unix域套接字
通过 tcp 端口访问内网的 unix域套接字(例如和 docker daemon 通信)。
frps 的部署步骤同上。
启动 frpc,启用 unix_domain_socket 插件,配置如下:
Bash
1 [common]
2 server_addr = 180.28.83.22 #这里是服务器的IP
3 server_port = 5443 #服务器的连接端口
4 token = LnDeMkeiIedDeDw #服务器的连接Token
5
6 [unix_domain_socket]
7 type = tcp
8 remote_port = 6000
9 plugin = unix_domain_socket
10 plugin_unix_path = /var/run/docker.sock
通过 curl 命令查看 docker 版本信息
curl http://x.x.x.x:6000/version

3、win系统远程桌面
通过tcp 来连接位于内网中的电脑,配置如下:
Bash
1 [common]
2 server_addr = 180.28.83.22 #这里是服务器的IP
3 server_port = 5443 #服务器的连接端口
4 token = LnDeMkeiIedDeDw #服务器的连接Token
5
6 [dns]
7 type = tcp
8 local_ip = 127.0.0.1
9 local_port = 3389
10 remote_port = 33890
然后通过 mstsc -v 180.28.83.22:33890 就可以远程桌面到内网。
回复

使用道具 举报

 楼主| 发表于 2022-9-15 23:27:01 | 显示全部楼层

Frps服务端一键配置脚本,Frp最新版本:0.44.0

<div><h2 dir=\"auto\" style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; line-height: 1&#46;25; padding-bottom: 0&#46;3em; border-bottom: 1px solid var(--color-border-muted); color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: rgb(255, 255, 255);\">Frps-Onekey-Install-Shell For CentOS/Debian/Ubuntu/Fedora (32bit/64bit)</h2><h3 dir=\"auto\" style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; font-size: 1&#46;25em; line-height: 1&#46;25; color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: rgb(255, 255, 255);\"><a id=\"user-content-install安装\" class=\"anchor\" aria-hidden=\"true\" href=\"https://github&#46;com/MvsCode/frps-onekey#install安装\" style=\"box-sizing: border-box; background-color: transparent; text-decoration-line: none; float: left; padding-right: 4px; margin-left: -20px; line-height: 1;\"><svg class=\"octicon octicon-link\" viewbox=\"0 0 16 16\" version=\"1&#46;1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M7&#46;775 3&#46;275a&#46;75&#46;75 0 001&#46;06 1&#46;06l1&#46;25-1&#46;25a2 2 0 112&#46;83 2&#46;83l-2&#46;5 2&#46;5a2 2 0 01-2&#46;83 0 &#46;75&#46;75 0 00-1&#46;06 1&#46;06 3&#46;5 3&#46;5 0 004&#46;95 0l2&#46;5-2&#46;5a3&#46;5 3&#46;5 0 00-4&#46;95-4&#46;95l-1&#46;25 1&#46;25zm-4&#46;69 9&#46;64a2 2 0 010-2&#46;83l2&#46;5-2&#46;5a2 2 0 012&#46;83 0 &#46;75&#46;75 0 001&#46;06-1&#46;06 3&#46;5 3&#46;5 0 00-4&#46;95 0l-2&#46;5 2&#46;5a3&#46;5 3&#46;5 0 004&#46;95 4&#46;95l1&#46;25-1&#46;25a&#46;75&#46;75 0 00-1&#46;06-1&#46;06l-1&#46;25 1&#46;25a2 2 0 01-2&#46;83 0z\"></path></svg></a>Install(安装)</h3><h4 dir=\"auto\" style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; font-size: 16px; line-height: 1&#46;25; color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: rgb(255, 255, 255);\"><a id=\"user-content-aliyun\" class=\"anchor\" aria-hidden=\"true\" href=\"https://github&#46;com/MvsCode/frps-onekey#aliyun\" style=\"box-sizing: border-box; background-color: transparent; text-decoration-line: none; float: left; padding-right: 4px; margin-left: -20px; line-height: 1;\"><svg class=\"octicon octicon-link\" viewbox=\"0 0 16 16\" version=\"1&#46;1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M7&#46;775 3&#46;275a&#46;75&#46;75 0 001&#46;06 1&#46;06l1&#46;25-1&#46;25a2 2 0 112&#46;83 2&#46;83l-2&#46;5 2&#46;5a2 2 0 01-2&#46;83 0 &#46;75&#46;75 0 00-1&#46;06 1&#46;06 3&#46;5 3&#46;5 0 004&#46;95 0l2&#46;5-2&#46;5a3&#46;5 3&#46;5 0 00-4&#46;95-4&#46;95l-1&#46;25 1&#46;25zm-4&#46;69 9&#46;64a2 2 0 010-2&#46;83l2&#46;5-2&#46;5a2 2 0 012&#46;83 0 &#46;75&#46;75 0 001&#46;06-1&#46;06 3&#46;5 3&#46;5 0 00-4&#46;95 0l-2&#46;5 2&#46;5a3&#46;5 3&#46;5 0 004&#46;95 4&#46;95l1&#46;25-1&#46;25a&#46;75&#46;75 0 00-1&#46;06-1&#46;06l-1&#46;25 1&#46;25a2 2 0 01-2&#46;83 0z\"></path></svg></a>Aliyun</h4><div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" style=\"box-sizing: border-box; margin-bottom: 16px; color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: rgb(255, 255, 255); position: relative !important; overflow: auto !important;\"><pre style=\"box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size: 13&#46;6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1&#46;45; background-color: var(--color-canvas-subtle); border-radius: 6px; word-break: normal;\">wget https://code&#46;aliyun&#46;com/MvsCode/frps-onekey/raw/master/install-frps&#46;sh -O &#46;/install-frps&#46;sh
chmod 700 &#46;/install-frps&#46;sh
&#46;/install-frps&#46;sh install</pre></div><h4 dir=\"auto\" style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; font-size: 16px; line-height: 1&#46;25; color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: rgb(255, 255, 255);\"><a id=\"user-content-github\" class=\"anchor\" aria-hidden=\"true\" href=\"https://github&#46;com/MvsCode/frps-onekey#github\" style=\"box-sizing: border-box; background-color: transparent; text-decoration-line: none; float: left; padding-right: 4px; margin-left: -20px; line-height: 1;\"><svg class=\"octicon octicon-link\" viewbox=\"0 0 16 16\" version=\"1&#46;1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M7&#46;775 3&#46;275a&#46;75&#46;75 0 001&#46;06 1&#46;06l1&#46;25-1&#46;25a2 2 0 112&#46;83 2&#46;83l-2&#46;5 2&#46;5a2 2 0 01-2&#46;83 0 &#46;75&#46;75 0 00-1&#46;06 1&#46;06 3&#46;5 3&#46;5 0 004&#46;95 0l2&#46;5-2&#46;5a3&#46;5 3&#46;5 0 00-4&#46;95-4&#46;95l-1&#46;25 1&#46;25zm-4&#46;69 9&#46;64a2 2 0 010-2&#46;83l2&#46;5-2&#46;5a2 2 0 012&#46;83 0 &#46;75&#46;75 0 001&#46;06-1&#46;06 3&#46;5 3&#46;5 0 00-4&#46;95 0l-2&#46;5 2&#46;5a3&#46;5 3&#46;5 0 004&#46;95 4&#46;95l1&#46;25-1&#46;25a&#46;75&#46;75 0 00-1&#46;06-1&#46;06l-1&#46;25 1&#46;25a2 2 0 01-2&#46;83 0z\"></path></svg></a>Github</h4><div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" style=\"box-sizing: border-box; margin-bottom: 16px; color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: rgb(255, 255, 255); position: relative !important; overflow: auto !important;\"><pre style=\"box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size: 13&#46;6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1&#46;45; background-color: var(--color-canvas-subtle); border-radius: 6px; word-break: normal;\">wget https://raw&#46;githubusercontent&#46;com/MvsCode/frps-onekey/master/install-frps&#46;sh -O &#46;/install-frps&#46;sh
chmod 700 &#46;/install-frps&#46;sh
&#46;/install-frps&#46;sh install</pre></div><h3 dir=\"auto\" style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; font-size: 1&#46;25em; line-height: 1&#46;25; color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: rgb(255, 255, 255);\"><a id=\"user-content-uninstall卸载\" class=\"anchor\" aria-hidden=\"true\" href=\"https://github&#46;com/MvsCode/frps-onekey#uninstall卸载\" style=\"box-sizing: border-box; background-color: transparent; text-decoration-line: none; float: left; padding-right: 4px; margin-left: -20px; line-height: 1;\"><svg class=\"octicon octicon-link\" viewbox=\"0 0 16 16\" version=\"1&#46;1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M7&#46;775 3&#46;275a&#46;75&#46;75 0 001&#46;06 1&#46;06l1&#46;25-1&#46;25a2 2 0 112&#46;83 2&#46;83l-2&#46;5 2&#46;5a2 2 0 01-2&#46;83 0 &#46;75&#46;75 0 00-1&#46;06 1&#46;06 3&#46;5 3&#46;5 0 004&#46;95 0l2&#46;5-2&#46;5a3&#46;5 3&#46;5 0 00-4&#46;95-4&#46;95l-1&#46;25 1&#46;25zm-4&#46;69 9&#46;64a2 2 0 010-2&#46;83l2&#46;5-2&#46;5a2 2 0 012&#46;83 0 &#46;75&#46;75 0 001&#46;06-1&#46;06 3&#46;5 3&#46;5 0 00-4&#46;95 0l-2&#46;5 2&#46;5a3&#46;5 3&#46;5 0 004&#46;95 4&#46;95l1&#46;25-1&#46;25a&#46;75&#46;75 0 00-1&#46;06-1&#46;06l-1&#46;25 1&#46;25a2 2 0 01-2&#46;83 0z\"></path></svg></a>Uninstall(卸载)</h3><div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" style=\"box-sizing: border-box; margin-bottom: 16px; color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: rgb(255, 255, 255); position: relative !important; overflow: auto !important;\"><pre style=\"box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size: 13&#46;6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1&#46;45; background-color: var(--color-canvas-subtle); border-radius: 6px; word-break: normal;\">&#46;/install-frps&#46;sh uninstall</pre></div><h3 dir=\"auto\" style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; font-size: 1&#46;25em; line-height: 1&#46;25; color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: rgb(255, 255, 255);\"><a id=\"user-content-update更新\" class=\"anchor\" aria-hidden=\"true\" href=\"https://github&#46;com/MvsCode/frps-onekey#update更新\" style=\"box-sizing: border-box; background-color: transparent; text-decoration-line: none; float: left; padding-right: 4px; margin-left: -20px; line-height: 1;\"><svg class=\"octicon octicon-link\" viewbox=\"0 0 16 16\" version=\"1&#46;1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M7&#46;775 3&#46;275a&#46;75&#46;75 0 001&#46;06 1&#46;06l1&#46;25-1&#46;25a2 2 0 112&#46;83 2&#46;83l-2&#46;5 2&#46;5a2 2 0 01-2&#46;83 0 &#46;75&#46;75 0 00-1&#46;06 1&#46;06 3&#46;5 3&#46;5 0 004&#46;95 0l2&#46;5-2&#46;5a3&#46;5 3&#46;5 0 00-4&#46;95-4&#46;95l-1&#46;25 1&#46;25zm-4&#46;69 9&#46;64a2 2 0 010-2&#46;83l2&#46;5-2&#46;5a2 2 0 012&#46;83 0 &#46;75&#46;75 0 001&#46;06-1&#46;06 3&#46;5 3&#46;5 0 00-4&#46;95 0l-2&#46;5 2&#46;5a3&#46;5 3&#46;5 0 004&#46;95 4&#46;95l1&#46;25-1&#46;25a&#46;75&#46;75 0 00-1&#46;06-1&#46;06l-1&#46;25 1&#46;25a2 2 0 01-2&#46;83 0z\"></path></svg></a>Update(更新)</h3><div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" style=\"box-sizing: border-box; margin-bottom: 16px; color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: rgb(255, 255, 255); position: relative !important; overflow: auto !important;\"><pre style=\"box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size: 13&#46;6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1&#46;45; background-color: var(--color-canvas-subtle); border-radius: 6px; word-break: normal;\">&#46;/install-frps&#46;sh update</pre></div><h3 dir=\"auto\" style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; font-size: 1&#46;25em; line-height: 1&#46;25; color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: rgb(255, 255, 255);\"><a id=\"user-content-server-management服务管理器\" class=\"anchor\" aria-hidden=\"true\" href=\"https://github&#46;com/MvsCode/frps-onekey#server-management服务管理器\" style=\"box-sizing: border-box; background-color: transparent; text-decoration-line: none; float: left; padding-right: 4px; margin-left: -20px; line-height: 1;\"><svg class=\"octicon octicon-link\" viewbox=\"0 0 16 16\" version=\"1&#46;1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M7&#46;775 3&#46;275a&#46;75&#46;75 0 001&#46;06 1&#46;06l1&#46;25-1&#46;25a2 2 0 112&#46;83 2&#46;83l-2&#46;5 2&#46;5a2 2 0 01-2&#46;83 0 &#46;75&#46;75 0 00-1&#46;06 1&#46;06 3&#46;5 3&#46;5 0 004&#46;95 0l2&#46;5-2&#46;5a3&#46;5 3&#46;5 0 00-4&#46;95-4&#46;95l-1&#46;25 1&#46;25zm-4&#46;69 9&#46;64a2 2 0 010-2&#46;83l2&#46;5-2&#46;5a2 2 0 012&#46;83 0 &#46;75&#46;75 0 001&#46;06-1&#46;06 3&#46;5 3&#46;5 0 00-4&#46;95 0l-2&#46;5 2&#46;5a3&#46;5 3&#46;5 0 004&#46;95 4&#46;95l1&#46;25-1&#46;25a&#46;75&#46;75 0 00-1&#46;06-1&#46;06l-1&#46;25 1&#46;25a2 2 0 01-2&#46;83 0z\"></path></svg></a>Server management(服务管理器)</h3><div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" style=\"box-sizing: border-box; margin-bottom: 16px; color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: rgb(255, 255, 255); position: relative !important; overflow: auto !important;\"><pre style=\"box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size: 13&#46;6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1&#46;45; background-color: var(--color-canvas-subtle); border-radius: 6px; word-break: normal;\">Usage: /etc/init&#46;d/frps {start<span class=\"pl-k\" style=\"box-sizing: border-box; color: var(--color-prettylights-syntax-keyword);\">|</span>stop<span class=\"pl-k\" style=\"box-sizing: border-box; color: var(--color-prettylights-syntax-keyword);\">|</span>restart<span class=\"pl-k\" style=\"box-sizing: border-box; color: var(--color-prettylights-syntax-keyword);\">|</span>status<span class=\"pl-k\" style=\"box-sizing: border-box; color: var(--color-prettylights-syntax-keyword);\">|</span>config<span class=\"pl-k\" style=\"box-sizing: border-box; color: var(--color-prettylights-syntax-keyword);\">|</span>version}</pre></div><h2 dir=\"auto\" style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; line-height: 1&#46;25; padding-bottom: 0&#46;3em; border-bottom: 1px solid var(--color-border-muted); color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: rgb(255, 255, 255);\"><a id=\"user-content-frps-onkey-install-shell-changelogfrp版本更新说明\" class=\"anchor\" aria-hidden=\"true\" href=\"https://github&#46;com/MvsCode/frps-onekey#frps-onkey-install-shell-changelogfrp版本更新说明\" style=\"box-sizing: border-box; background-color: transparent; text-decoration-line: none; float: left; padding-right: 4px; margin-left: -20px; line-height: 1;\"><svg class=\"octicon octicon-link\" viewbox=\"0 0 16 16\" version=\"1&#46;1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M7&#46;775 3&#46;275a&#46;75&#46;75 0 001&#46;06 1&#46;06l1&#46;25-1&#46;25a2 2 0 112&#46;83 2&#46;83l-2&#46;5 2&#46;5a2 2 0 01-2&#46;83 0 &#46;75&#46;75 0 00-1&#46;06 1&#46;06 3&#46;5 3&#46;5 0 004&#46;95 0l2&#46;5-2&#46;5a3&#46;5 3&#46;5 0 00-4&#46;95-4&#46;95l-1&#46;25 1&#46;25zm-4&#46;69 9&#46;64a2 2 0 010-2&#46;83l2&#46;5-2&#46;5a2 2 0 012&#46;83 0 &#46;75&#46;75 0 001&#46;06-1&#46;06 3&#46;5 3&#46;5 0 00-4&#46;95 0l-2&#46;5 2&#46;5a3&#46;5 3&#46;5 0 004&#46;95 4&#46;95l1&#46;25-1&#46;25a&#46;75&#46;75 0 00-1&#46;06-1&#46;06l-1&#46;25 1&#46;25a2 2 0 01-2&#46;83 0z\"></path></svg></a>Frps onkey-install-shell Changelog<br style=\"box-sizing: border-box;\" />Frp版本更新说明</h2></div>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|腾飞在线 ( 冀ICP备05002530号 )

GMT+8, 2026-2-13 08:20 , Processed in 0.057018 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表