差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
| frp:frps [2026/01/04 12:10] – [FRPS] admin | frp:frps [2026/01/05 15:59] (当前版本) – admin | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== FRPS ====== | ====== FRPS ====== | ||
| + | |||
| + | ```/ | ||
| 配置模板一: | 配置模板一: | ||
| ``` | ``` | ||
| bindPort = 7000 | bindPort = 7000 | ||
| - | # | ||
| quicBindPort = 7000 | quicBindPort = 7000 | ||
| transport.maxPoolCount = 50 | transport.maxPoolCount = 50 | ||
| - | # | ||
| webServer.addr = " | webServer.addr = " | ||
| 行 27: | 行 27: | ||
| log.maxDays = 3 | log.maxDays = 3 | ||
| + | ``` | ||
| + | |||
| + | 配置模板二: | ||
| + | |||
| + | 带插件用户鉴权功能 | ||
| + | ``` | ||
| + | bindPort = 7000 | ||
| + | transport.maxPoolCount = 50 | ||
| + | transport.heartbeatTimeout = 90 | ||
| + | |||
| + | webServer.addr = " | ||
| + | webServer.port = 7500 | ||
| + | webServer.user = " | ||
| + | webServer.password = " | ||
| + | |||
| + | transport.tls.force = false | ||
| + | |||
| + | vhostHTTPPort = 8088 | ||
| + | vhostHTTPSPort = 3443 | ||
| + | |||
| + | subDomainHost = " | ||
| + | |||
| + | log.to = "/ | ||
| + | log.level = " | ||
| + | log.maxDays = 3 | ||
| + | |||
| + | [[httpPlugins]] | ||
| + | name = " | ||
| + | addr = " | ||
| + | path = "/ | ||
| + | ops = [" | ||
| + | |||
| + | ``` | ||
| + | |||
| + | ```/ | ||
| + | ``` | ||
| + | [Unit] | ||
| + | Description = frp server | ||
| + | After = network.target syslog.target | ||
| + | Wants = network.target | ||
| + | |||
| + | [Service] | ||
| + | Type = simple | ||
| + | ExecStart = / | ||
| + | |||
| + | [Install] | ||
| + | WantedBy = multi-user.target | ||
| + | ``` | ||
| + | |||
| + | 启动服务: | ||
| + | ``` | ||
| + | systemctl daemon-reload | ||
| + | systemctl start frps | ||
| + | systemctl enable frps | ||
| ``` | ``` | ||
| ===== frps插件 ===== | ===== frps插件 ===== | ||
| https:// | https:// | ||
| + | |||
| + | [[.: | ||
| + | |||
| + | |||
| + | ===== frpc ===== | ||
| + | |||
| + | [[frpc|frpc]] | ||