<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>十八岁的不忘初心</title><link>https://www.mpzdsw.cn/</link><description>成长笔记</description><item><title>windows10/11系统自动更新关闭</title><link>https://www.mpzdsw.cn/?id=98</link><description>&lt;p&gt;&amp;nbsp;最近刷到自动更新补丁导致掉盘问题, 吓的我赶紧卸载相关更新&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;既如此 有没有一种方法暂停更新呢 当然有:&lt;/p&gt;&lt;p&gt;Win+R，输入regedit，打开注册表&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;打开注册表的如下路径：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;右键空白的地方新建DWORD值，命名为：FlightSettingsMaxPauseDays&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;双击FlightSettingsMaxPauseDays，修改里面的值为3650。十进制，表示3650天。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2025/08/202508221105584912404.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;打开windows更新 看到以下场景&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2025/08/202508221106493489666.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;设置完毕效果&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2025/08/202508221107095999561.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;有什么更新 10年后再跟我说吧&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;当然！Windows更新的核心好处还是有的&lt;/p&gt;&lt;p&gt;比如 提升系统安全性、增强稳定性、优化性能、增加新功能以及提高软硬件兼容性‌，确保用户获得更安全流畅的体验。‌‌&lt;/p&gt;&lt;p&gt;建议大家还是正常更新的！&lt;/p&gt;</description><pubDate>Fri, 22 Aug 2025 11:01:09 +0800</pubDate></item><item><title>windows系统登陆策略限制</title><link>https://www.mpzdsw.cn/?id=97</link><description>&lt;h2&gt;1.前言&lt;/h2&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 有一台windows server服务器 密码难度很高 但是看日志依然有很多字典爆破登录的记录.于是开启了登录策略做限制 防止被爆破&lt;/p&gt;&lt;h2&gt;2.查询日志&lt;br/&gt;&lt;/h2&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;win+r 运行 eventvwr.msc-&amp;gt;Windows日志-&amp;gt;安全&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2024/08/202408140942266628039.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;筛选日志看下 事件来源: Microsoft Windows security auditing 任务类别:Logon 关键字:审核失败&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2024/08/202408140943599107678.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;发现短短两天时间有两万多个登录失败事件&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2024/08/202408140948138409829.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;IP地址大部分是同一个 而且是国外IP&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2024/08/202408140948536340335.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;h2&gt;3.调整方法&lt;/h2&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;调整方法可以在防火墙做限制 指定IP可以登录 或者 做登录策略 登录失败次数达到一定次数禁止IP登录 这里我使用第二种&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;win+r 运行&amp;nbsp;secpol.msc -&amp;gt;账户策略-&amp;gt;账户锁定策略&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2024/08/202408140955038718276.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;这里我做出的调整 账户锁定时间 60分钟&amp;nbsp;&lt;/p&gt;&lt;p&gt;账户锁定阈值 3次无效登录&lt;/p&gt;&lt;p&gt;重置账户锁定计数器 30分分钟 意思是30分钟内 如果登录失败3次 将会锁定60分钟&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2024/08/202408140958453264443.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;h2&gt;4.测试调整&lt;br/&gt;&lt;/h2&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;错误输入密码超过次数之后 即使输入正确密码 依然拦截&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2024/08/202408141002003052956.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 14 Aug 2024 09:37:03 +0800</pubDate></item><item><title>记录一次生产环境服务意外中止问题分析</title><link>https://www.mpzdsw.cn/?id=96</link><description>&lt;h2 cid=&quot;n0&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain md-expand&quot; style=&quot;box-sizing: border-box&quot;&gt;1.前言&lt;/span&gt;&lt;/h2&gt;&lt;p cid=&quot;n2&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;记录一次服务端服务意外停止&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n3&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;生产环境服务器总是经常意外停止，无任何日志,分析内存回收没有发现问题,java程序不存在内存泄漏既GC正常,FULLGC次数不多 GC日志正常 java程序无OOM&lt;/span&gt;&lt;/p&gt;&lt;h2 cid=&quot;n4&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2.解决思路&lt;/span&gt;&lt;/h2&gt;&lt;p cid=&quot;n5&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p md-focus&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;1.分析内存泄漏 线程死锁 等&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n6&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;使用工具&lt;/span&gt;&lt;span md-inline=&quot;code&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;code style=&quot;box-sizing: border-box;font-family: var(--monospace);vertical-align: initial;border: 1px solid rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em&quot;&gt;arthas&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n7&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231358371713996.png&quot; alt=&quot;image-20230523103410311.png&quot; title=&quot;image-20230523103410311.png&quot;/&gt;&lt;/p&gt;&lt;p cid=&quot;n8&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;无异常&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n9&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;因为经常在凌晨挂 1点左右 考虑是定时任务导致的 然后等到凌晨&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n10&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20230523103534859.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 800px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231358545854727.png&quot; alt=&quot;image-20230523103534859.png&quot; title=&quot;image-20230523103534859.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n11&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;也无异常 这几次等待程序并未挂掉&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n12&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;分析日志 根本没有任何oom日志 凌晨挂掉的时候日志也没有任何异常日志 &lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n13&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;而且最大的一个原因是每次挂掉仿佛就是随机&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n14&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;甚至怀疑是是不是又脚本啥这个端口把文件都搜了一遍 如下图 也没有&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n15&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20230523110025197.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 800px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231359377174818.png&quot; alt=&quot;image-20230523110025197.png&quot; title=&quot;image-20230523110025197.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n16&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;排查问题只能告一段落&lt;/span&gt;&lt;/p&gt;&lt;h2 cid=&quot;n17&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;3.意外收获&lt;/span&gt;&lt;/h2&gt;&lt;p cid=&quot;n18&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;昨天下午19点左右的时候程序又出现服务挂掉&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n19&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;今天准备把java程序启动时加jvm参数的时候 想应该配置xmx多少合适呢 搜索服务器的java程序有很多个(大概7/8 个) 然后服务器内存16G &amp;nbsp;想一下每个分多少的时候突然想到 有没有是因为服务器内存不足把进程杀掉的呢&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n20&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;搜了一下 &lt;/span&gt;&lt;span md-inline=&quot;code&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;code style=&quot;box-sizing: border-box;font-family: var(--monospace);vertical-align: initial;border: 1px solid rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em&quot;&gt;linux有什么机制会杀死进程&lt;/code&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;回答如下&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; cid=&quot;n21&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;Linux中有多种机制可以杀死进程，其中一些常见的机制包括：&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span class=&quot;cm-block-start cm-variable-2&quot; style=&quot;box-sizing: border-box;color: #0055AA&quot;&gt;1. &lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #0055AA&quot;&gt;用户手动杀死进程：用户可以使用kill命令或者killall命令手动杀死进程。&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span class=&quot;cm-block-start cm-variable-2&quot; style=&quot;box-sizing: border-box;color: #0055AA&quot;&gt;2. &lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #0055AA&quot;&gt;内核自动杀死进程：当系统资源不足时，内核会自动杀死一些进程来释放资源。这个机制被称为OOM Killer。&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span class=&quot;cm-block-start cm-variable-2&quot; style=&quot;box-sizing: border-box;color: #0055AA&quot;&gt;3. &lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #0055AA&quot;&gt;系统管理员杀死进程：系统管理员可以使用kill命令或者其他工具杀死进程。&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span class=&quot;cm-block-start cm-variable-2&quot; style=&quot;box-sizing: border-box;color: #0055AA&quot;&gt;4. &lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #0055AA&quot;&gt;进程自己退出：进程可以自己退出，例如在完成任务后调用exit()函数。&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span class=&quot;cm-block-start cm-variable-2&quot; style=&quot;box-sizing: border-box;color: #0055AA&quot;&gt;5. &lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #0055AA&quot;&gt;信号杀死进程：进程可以接收到信号，其中一些信号可以导致进程退出，例如SIGKILL和SIGTERM信号。&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;总之，Linux中有多种机制可以杀死进程，每种机制都有不同的使用场景和限制。&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n22&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;看来2可能是服务挂掉的原因&lt;/span&gt;&lt;/p&gt;&lt;h2 cid=&quot;n23&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;4.定位问题&lt;/span&gt;&lt;/h2&gt;&lt;p cid=&quot;n24&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;搜了&lt;/span&gt;&lt;span md-inline=&quot;code&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;code style=&quot;box-sizing: border-box;font-family: var(--monospace);vertical-align: initial;border: 1px solid rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em&quot;&gt;OOM Killer&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; cid=&quot;n25&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;OOM&amp;nbsp;Killer是Linux内核中的一个机制，用于在系统内存不足时杀死进程以释放内存。当系统内存不足时，OOM&amp;nbsp;Killer会选择一个进程并杀死它，以释放内存。&lt;/pre&gt;&lt;p cid=&quot;n26&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;然后搜索跟&lt;/span&gt;&lt;span md-inline=&quot;code&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;code style=&quot;box-sizing: border-box;font-family: var(--monospace);vertical-align: initial;border: 1px solid rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em&quot;&gt;OOM Killer&lt;/code&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;相关的博客&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n27&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;相关链接&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n28&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;# OOM Killer官方文档&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;https://www.kernel.org/doc/gorman/html/understand/understand016.html&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;# OOM Killer的文章&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;https://blog.csdn.net/weixin_48101150/article/details/117220082&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;https://www.cnblogs.com/yaohuimo/p/11989916.html&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;https://segmentfault.com/a/1190000008268803&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;https://www.cnblogs.com/xibuhaohao/p/11087922.html&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;http://evertrain.blogspot.com/2018/04/oom.html&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;# overcommit_memory的文章&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;https://www.modb.pro/db/25980&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n29&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;大概意义就是: 当服务去申请内存时，服务器内存不足的时候会杀死一个进程释放内存&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n30&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;4.1.OOM Killer如何触发&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n31&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;引用博客中的&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n32&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;现代内核通常在分配内存时，允许申请的内存量超过实际可分配的free内存，这种技术称为Overcommit，可以认为是一种内存超卖的策略。开启了Overcommit，其实是基于一个普遍的规律——大部分应用并不会将其申请的内存全部用满——来尽量提升内存的利用率，可以允许系统分配出的内存总和超过系统能提供之和(物理内存+Swap空间)，但是这种做法也导致OOM的风险。&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;overcommit的策略。&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;通过内核参数vm.overcommit_memory来进行控制，取值如下&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;0 表示内核将检查是否有足够的可用内存供应用进程使用；如果有足够的可用内存，内存申请允许；否则，内存申请失败，并把错误返回给应用进程。&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;Overcommit的内存过大将会失败，轻微的Overcommit将被允许。（如何区分？）&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;1 永远允许Overcommit，这种策略适合那些不能承受内存分配失败的应用，比如某些科学计算应用。&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;2 永远禁止Overcommit，在这个情况下，系统所能分配的内存不会超过swap+RAM*系数（/proc/sys/vm/overcmmit_ratio，默认50%，你可以调整），如果这么多资源已经用光，那么后面任何尝试申请内存的行为都会返回错误，这通常意味着此时没法运行任何新程序。&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n33&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;查看本机上的&lt;/span&gt;&lt;span md-inline=&quot;code&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;code style=&quot;box-sizing: border-box;font-family: var(--monospace);vertical-align: initial;border: 1px solid rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em&quot;&gt;overcommit&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n34&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;grep&amp;nbsp;-i&amp;nbsp;commit&amp;nbsp;/proc/meminfo&lt;/pre&gt;&lt;h3 cid=&quot;n35&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;4.2.OOM Killer如何选择杀掉的进程&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n36&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;当物理内存和交换空间都被用完时，如果还有进程来申请内存，内核将触发OOM killer，其行为如下：&lt;/span&gt;&lt;/p&gt;&lt;ol start=&quot;&quot; cid=&quot;n37&quot; mdtype=&quot;list&quot; style=&quot;box-sizing: border-box;margin-top: 0.8em;margin-bottom: 0.8em;padding-left: 30px;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;white-space: normal&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p cid=&quot;n39&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;检查文件/proc/sys/vm/panic_on_oom，如果里面的值为2，那么系统一定会触发panic&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n41&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;如果/proc/sys/vm/panic_on_oom的值为1，那么系统有可能触发panic&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n43&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;如果/proc/sys/vm/panic_on_oom的值为0，或者上一步没有触发panic，那么内核继续检查文件/proc/sys/vm/oom_kill_allocating_task&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n45&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;如果/proc/sys/vm/oom_kill_allocating_task为1，那么内核将kill掉当前申请内存的进程&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n47&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;如果/proc/sys/vm/oom_kill_allocating_task为0，内核将检查每个进程的分数，分数最高的进程将被kill掉&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p cid=&quot;n48&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;查看我们服务器&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n49&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;cat /proc/sys/vm/panic_on_oom&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;cat /proc/sys/vm/oom_kill_allocating_task&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n50&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231359595691626.png&quot; alt=&quot;image-20230523112941084.png&quot; title=&quot;image-20230523112941084.png&quot;/&gt;&lt;/p&gt;&lt;p cid=&quot;n51&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;可以看到panic_on_oom和oom_kill_allocating_task都是0 既: 内核将检查每个进程的分数，分数最高的进程将被kill掉&lt;/span&gt;&lt;/p&gt;&lt;h4 cid=&quot;n52&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.4;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;4.2.1.找出最有可能被杀掉的进程&lt;/span&gt;&lt;/h4&gt;&lt;p cid=&quot;n53&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;如何查询进程的分数&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; cid=&quot;n54&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;cat&amp;nbsp;/proc/&amp;lt;pid&amp;gt;/oom_score&lt;/pre&gt;&lt;p cid=&quot;n55&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;tag&quot; class=&quot;md-tag md-raw-inline&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box;font-family: var(--monospace);opacity: 1;color: #A7A7A7&quot;&gt;&amp;lt;pid&amp;gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;需要改掉&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n56&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;干脆写个脚本&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; cid=&quot;n57&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;vi&lt;/span&gt; oomscore.sh&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #555555&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #770088&quot;&gt;for&lt;/span&gt; proc &lt;span style=&quot;box-sizing: border-box;color: #770088&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt;$(find /proc -maxdepth 1 -regex &amp;#39;/proc/[0-9]+&amp;#39;)&lt;/span&gt;; &lt;span style=&quot;box-sizing: border-box;color: #770088&quot;&gt;do&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;printf &lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;%2d %5d %s\n&amp;quot;&lt;/span&gt; \&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt;$(cat &lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;$proc&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt;/oom_score)&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;&lt;/span&gt; \&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt;$(basename &lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;$proc&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;&lt;/span&gt; \&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt;$(cat &lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;$proc&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt;/cmdline | tr &amp;#39;\0&amp;#39; &amp;#39; &amp;#39; | head -c 50)&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #770088&quot;&gt;done&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box;color: #116644&quot;&gt;2&lt;/span&gt;&amp;gt;/dev/null | &lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;sort&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box;color: #0000CC&quot;&gt;-nr&lt;/span&gt; | head &lt;span style=&quot;box-sizing: border-box;color: #0000CC&quot;&gt;-n&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box;color: #116644&quot;&gt;10&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;chmod&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;+&lt;/span&gt;x oomscore.sh&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;./oomscore.sh&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n58&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;运行结果&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n59&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20230523113609714.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 800px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231400174035365.png&quot; alt=&quot;image-20230523113609714.png&quot; title=&quot;image-20230523113609714.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n60&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;确实是经常挂掉的两个服务&lt;/span&gt;&lt;/p&gt;&lt;h4 cid=&quot;n61&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.4;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;4.2.2.杀掉进程的日志&lt;/span&gt;&lt;/h4&gt;&lt;p cid=&quot;n62&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;OOM killer会将kill的信息记录到系统日志/var/log/messages，检索相关信息就能匹配到是否进行了,如果配置了syslog，日志可能在/var/log/syslog里面。&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n63&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;查看日志&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n64&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;code&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;code style=&quot;box-sizing: border-box;font-family: var(--monospace);vertical-align: initial;border: 1px solid rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em&quot;&gt;vim /var/log/messages&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n65&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20230523113952415.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 800px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231400352361273.png&quot; alt=&quot;image-20230523113952415.png&quot; title=&quot;image-20230523113952415.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n66&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;日志太多 直接搜索 killer&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n67&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20230523114024959.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 800px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231400514449554.png&quot; alt=&quot;image-20230523114024959.png&quot; title=&quot;image-20230523114024959.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n68&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;确实是昨天服务挂掉的时间&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n69&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;4.3. 避免的oom killer的方案&lt;/span&gt;&lt;/h3&gt;&lt;ul cid=&quot;n70&quot; mdtype=&quot;list&quot; data-mark=&quot;-&quot; style=&quot;box-sizing: border-box;margin-top: 0.8em;margin-bottom: 0.8em;padding-left: 30px;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;white-space: normal&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p cid=&quot;n72&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;直接修改/proc/PID/oom_adj文件，将其置位-17&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n74&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;修改/proc/sys/vm/lowmem_reserve_ratio&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n76&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;直接关闭oom-killer&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p cid=&quot;n77&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;当然这些不适用 还是通过优化系统资源使用和调整进程优先级等方式来避免OOM Killer的触发&lt;/span&gt;&lt;/p&gt;&lt;h2 cid=&quot;n78&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;5.重现问题&lt;/span&gt;&lt;/h2&gt;&lt;p cid=&quot;n79&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;既然找到问题是OOM Killer导致的服务挂掉 那我们来重现问题&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n80&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;环境 4H8G测试服务器 内核版本相同&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n81&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;思路&lt;/span&gt;&lt;/p&gt;&lt;ol start=&quot;&quot; cid=&quot;n82&quot; mdtype=&quot;list&quot; style=&quot;box-sizing: border-box;margin-top: 0.8em;margin-bottom: 0.8em;padding-left: 30px;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;white-space: normal&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p cid=&quot;n84&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;启动N个服务器 每个服务xms直接2G&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n86&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;每次启动查看oomscore&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n88&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;查看OOM killer杀掉进程的日志分析是不是最高的杀掉&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p cid=&quot;n89&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;开始测试&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n90&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;创建6个目录 6个服务 每个服务启动参数-Xmx2867m -Xms2867m&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n91&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20230523114623584.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 800px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231401229597537.png&quot; alt=&quot;image-20230523114623584.png&quot; title=&quot;image-20230523114623584.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n92&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;启动前free -m&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n93&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231401354353346.png&quot; alt=&quot;image-20230523122548773.png&quot; title=&quot;image-20230523122548773.png&quot;/&gt;&lt;/p&gt;&lt;p cid=&quot;n94&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;开始启动&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n95&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;1.启动第一个服务分析内存&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n96&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231401505815588.png&quot; alt=&quot;image-20230523122954316.png&quot; title=&quot;image-20230523122954316.png&quot;/&gt;&lt;/p&gt;&lt;p cid=&quot;n97&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;分3G的内存oom score一下就排到了第一&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n98&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;查看杀掉进程日志&lt;/span&gt;&lt;span md-inline=&quot;code&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;code style=&quot;box-sizing: border-box;font-family: var(--monospace);vertical-align: initial;border: 1px solid rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em&quot;&gt;tail -f /var/log/messages&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n99&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20230523123239391.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 800px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231402044777035.png&quot; alt=&quot;image-20230523123239391.png&quot; title=&quot;image-20230523123239391.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n100&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;没有kill进程&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n101&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2.启动第二个服务&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n102&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20230523123312269.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 800px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231402202471539.png&quot; alt=&quot;image-20230523123312269.png&quot; title=&quot;image-20230523123312269.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n103&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;日志没有kill进程&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n104&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;3.启动第三个服务&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n105&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20230523123511933.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 800px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231402358824140.png&quot; alt=&quot;image-20230523123511933.png&quot; title=&quot;image-20230523123511933.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n106&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;依然没有达到Kill进程的要求&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n107&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;4.启动第四个和第五个服务&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n108&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231402534254919.png&quot; alt=&quot;image-20230523124009733.png&quot; title=&quot;image-20230523124009733.png&quot;/&gt;&lt;/p&gt;&lt;p cid=&quot;n109&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;此时服务1的oomscore最高&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n110&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;5.继续启动第6个服务&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n111&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;第六个服务器还没启动第一个服务已经被杀死了&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n112&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20230523124211928.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 800px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231403061627550.png&quot; alt=&quot;image-20230523124211928.png&quot; title=&quot;image-20230523124211928.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n113&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;此时的日志&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n114&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20230523124229166.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 800px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/05/202305231403212219848.png&quot; alt=&quot;image-20230523124229166.png&quot; title=&quot;image-20230523124229166.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences mock-cm md-end-block&quot; cid=&quot;n115&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: pre-wrap;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;May&amp;nbsp;23&amp;nbsp;12:41:21&amp;nbsp;localhost&amp;nbsp;kernel:&amp;nbsp;Out&amp;nbsp;of&amp;nbsp;memory:&amp;nbsp;Kill&amp;nbsp;process&amp;nbsp;12172&amp;nbsp;(java)&amp;nbsp;score&amp;nbsp;167&amp;nbsp;or&amp;nbsp;sacrifice&amp;nbsp;child&amp;nbsp;May&amp;nbsp;23&amp;nbsp;12:41:21&amp;nbsp;localhost&amp;nbsp;kernel:&amp;nbsp;Killed&amp;nbsp;process&amp;nbsp;12172&amp;nbsp;(java),&amp;nbsp;UID&amp;nbsp;0,&amp;nbsp;total-vm:6719316kB,&amp;nbsp;anon-rss:863892kB,&amp;nbsp;file-rss:0kB,&amp;nbsp;shmem-rss:0kB&amp;nbsp;May&amp;nbsp;23&amp;nbsp;12:41:21&amp;nbsp;localhost&amp;nbsp;root:&amp;nbsp;[euid=root]:root&amp;nbsp;pts/0&amp;nbsp;2023-05-23&amp;nbsp;10:08&amp;nbsp;(192.168.0.36):[/data/app/demon/test1]2023-05-23&amp;nbsp;12:37:42&amp;nbsp;root&amp;nbsp;java&amp;nbsp;-Xmx3867m&amp;nbsp;-Xms2867m&amp;nbsp;-jar&amp;nbsp;content-server-1.jar&amp;nbsp;--server.port=9001&lt;/pre&gt;&lt;p cid=&quot;n116&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;由此可见问题重现 &lt;/span&gt;&lt;/p&gt;&lt;h2 cid=&quot;n117&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;6.解决问题&lt;/span&gt;&lt;/h2&gt;&lt;ol start=&quot;&quot; cid=&quot;n118&quot; mdtype=&quot;list&quot; style=&quot;box-sizing: border-box;margin-top: 0.8em;margin-bottom: 0.8em;padding-left: 30px;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;white-space: normal&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p cid=&quot;n120&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;每个服务限制Xmx 使得总服务的Xmx之和小于服务器内存 内存不足交由GC回收而不是申请新的内存&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n122&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0.5rem;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;关闭OOM Killer(不推荐) 如果关闭虽然不会杀死之前的服务 但是新的服务无法启动&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p cid=&quot;n123&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;相关JVM参数&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences mock-cm md-end-block&quot; lang=&quot;&quot; cid=&quot;n124&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: pre-wrap;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;#2G参数&amp;nbsp;-Xmx1433m&amp;nbsp;-Xms1433m&amp;nbsp;-XX:MaxMetaspaceSize=204m&amp;nbsp;-XX:MetaspaceSize=204m&amp;nbsp;-XX:-ExplicitGCInvokesConcurrentAndUnloadsClasses&amp;nbsp;-XX:MaxDirectMemorySize=204m&amp;nbsp;-XX:+UseG1GC&amp;nbsp;-XX:MaxGCPauseMillis=100&amp;nbsp;#4G参数&amp;nbsp;-Xmx2867m&amp;nbsp;-Xms2867m&amp;nbsp;-XX:MaxMetaspaceSize=409m&amp;nbsp;-XX:MetaspaceSize=409m&amp;nbsp;-XX:-ExplicitGCInvokesConcurrentAndUnloadsClasses&amp;nbsp;-XX:MaxDirectMemorySize=409m&amp;nbsp;-XX:+UseG1GC&amp;nbsp;-XX:MaxGCPauseMillis=100&amp;nbsp;#8G参数&amp;nbsp;-Xmx5734m&amp;nbsp;-Xms5734m&amp;nbsp;-XX:MaxMetaspaceSize=512m&amp;nbsp;-XX:MetaspaceSize=512m&amp;nbsp;-XX:-ExplicitGCInvokesConcurrentAndUnloadsClasses&amp;nbsp;-XX:MaxDirectMemorySize=819m&amp;nbsp;-XX:+UseG1GC&amp;nbsp;-XX:MaxGCPauseMillis=100&lt;/pre&gt;&lt;p cid=&quot;n125&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;参数解释&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences mock-cm md-end-block&quot; cid=&quot;n126&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: pre-wrap;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;-Xmx&amp;nbsp;&amp;nbsp;#最大堆大小&amp;nbsp;-Xms&amp;nbsp;&amp;nbsp;#初始堆大小&amp;nbsp;Xms跟Xmx设置一样的值可以防止内存抖动&amp;nbsp;jvm向操作系统申请内存时都需要一定的开销&amp;nbsp;#关于内存抖动文档&amp;nbsp;https://blog.csdn.net/javadada1197/article/details/119414239&amp;nbsp;-XX:MaxMetaspaceSize&amp;nbsp;#最大元空间&amp;nbsp;-XX:MetaspaceSize&amp;nbsp;#元空间&amp;nbsp;-XX:-ExplicitGCInvokesConcurrentAndUnloadsClasses&amp;nbsp;#防止出现意料之外的”stop-the-world”的系统GC&amp;nbsp;-XX:MaxDirectMemorySize&amp;nbsp;#此参数的含义是当Direct&amp;nbsp;ByteBuffer分配的堆外内存到达指定大小后，即触发Full&amp;nbsp;GC&amp;nbsp;-XX:+UseG1GC&amp;nbsp;#使用G1回收器&amp;nbsp;Garbage&amp;nbsp;First&amp;nbsp;-XX:MaxGCPauseMillis&amp;nbsp;#默认也是100ms&amp;nbsp;表示每次GC最大的停顿毫秒数，VM将调整Java堆大小和其他与GC相关的参数，以使GC引起的暂停时间短于nnn毫秒，尽可能地保证内存回收花费时间不超过设定值&amp;nbsp;该参数应谨慎使用。太小的值将导致系统花费过多的时间进行垃圾回收。原因是为满足最大暂停时间，VM将设置更小的堆，以存储相对少量的对象，来提升回收速率，会导致更高频率的GC&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 23 May 2023 13:25:51 +0800</pubDate></item><item><title>FastDFS安装教程</title><link>https://www.mpzdsw.cn/?id=87</link><description>&lt;h1 cid=&quot;n0&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 2.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.2;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain md-expand&quot; style=&quot;box-sizing: border-box&quot;&gt;一、准备环境&lt;/span&gt;&lt;/h1&gt;&lt;p cid=&quot;n2&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;准备如下 tar 包：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;figure cid=&quot;n3&quot; mdtype=&quot;table&quot; style=&quot;box-sizing: border-box;margin: 1.2em 0px;overflow-x: auto;max-width: calc(100% + 16px);padding: 0px;cursor: default;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;white-space: normal&quot;&gt;&lt;table width=&quot;800&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;background-color: rgb(248, 248, 248)&quot;&gt;&lt;tr cid=&quot;n4&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border-top: 1px solid rgb(223, 226, 229);padding: 0px&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;padding: 6px 13px;border-bottom: 0px;border-top-color: rgb(223, 226, 229);border-right-color: rgb(223, 226, 229);border-left-color: rgb(223, 226, 229);text-align: left&quot;&gt;&lt;span cid=&quot;n5&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 675px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;fastdfs-6.06.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;padding: 6px 13px;border-bottom: 0px;border-top-color: rgb(223, 226, 229);border-right-color: rgb(223, 226, 229);border-left-color: rgb(223, 226, 229);text-align: left&quot;&gt;&lt;br/&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box&quot;&gt;&lt;tr cid=&quot;n7&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border-top: 1px solid rgb(223, 226, 229);padding: 0px&quot;&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n8&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 675px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;libfastcommon-1.0.43.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr cid=&quot;n10&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border-top: 1px solid rgb(223, 226, 229);padding: 0px;background-color: rgb(248, 248, 248)&quot;&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n11&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 675px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;fastdfs-nginx-module-1.22.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr cid=&quot;n13&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border-top: 1px solid rgb(223, 226, 229);padding: 0px&quot;&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n14&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 675px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;nginx-1.17.7.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p cid=&quot;n16&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;1、使用 wget 命令下载压缩包，如果没有 wget 命令使用 yum 命令安装&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n17&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;yum&amp;nbsp;install&amp;nbsp;wget&lt;/pre&gt;&lt;p cid=&quot;n18&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2、下载 fastdfs&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n19&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;wget -c &amp;quot;https://github.com/happyfish100/fastdfs/archive/V6.06.tar.gz&amp;quot; \&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;-O fastdfs-6.06.tar.gz&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n20&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;3、下载 libfastcommon&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n21&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;wget -c &amp;quot;https://github.com/happyfish100/libfastcommon/archive/V1.0.43.tar.gz&amp;quot; \&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;-O libfastcommon-1.0.43.tar.gz&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n22&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;4、下载 fastdfs-nginx-module&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n23&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;wget -c &amp;quot;https://github.com/happyfish100/fastdfs-nginx-module/archive/V1.22.tar.gz&amp;quot; \&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;-O fastdfs-nginx-module-1.22.tar.gz&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n24&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;5、下载 nginx&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n25&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;wget&amp;nbsp;-c&amp;nbsp;http://nginx.org/download/nginx-1.18.0.tar.gz&lt;/pre&gt;&lt;p cid=&quot;n26&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;6、安装编译工具及库文件&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n27&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;yum&amp;nbsp;-y&amp;nbsp;install&amp;nbsp;make&amp;nbsp;zlib&amp;nbsp;zlib-devel&amp;nbsp;gcc-c++&amp;nbsp;libtool&amp;nbsp;&amp;nbsp;openssl&amp;nbsp;openssl-devel&lt;/pre&gt;&lt;p cid=&quot;n28&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;7、测试环境关闭防火墙&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n29&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;systemctl&amp;nbsp;stop&amp;nbsp;firewalld.service&lt;/pre&gt;&lt;p cid=&quot;n30&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;8、开机禁用防火墙&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n31&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;systemctl&amp;nbsp;disable&amp;nbsp;firewalld.service&lt;/pre&gt;&lt;p cid=&quot;n32&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;9、查看防火墙状态&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n33&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;firewall-cmd&amp;nbsp;--state&lt;/pre&gt;&lt;p cid=&quot;n34&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h1 cid=&quot;n35&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 2.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.2;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;二、解压并编译安装&lt;/span&gt;&lt;/h1&gt;&lt;p cid=&quot;n36&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 cid=&quot;n37&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;1. 解压下载好的包&lt;/span&gt;&lt;/h2&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n38&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;tar -zxvf fastdfs-6.06.tar.gz&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;tar -zxvf fastdfs-nginx-module-1.22.tar.gz&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;tar -zxvf libfastcommon-1.0.43.tar.gz&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;tar -zxvf nginx-1.17.7.tar.gz&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n39&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 cid=&quot;n40&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2. 编译安装&lt;/span&gt;&lt;/h2&gt;&lt;p cid=&quot;n41&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 cid=&quot;n42&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2.1 编译安装 libfastcommon&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n43&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;1、进入解压后的目录&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n44&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;cd&amp;nbsp;/root/download/libfastcommon-1.0.43&lt;/pre&gt;&lt;p cid=&quot;n45&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2、编译安装&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n46&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;./make.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;./make.sh&amp;nbsp;install&lt;/pre&gt;&lt;p cid=&quot;n47&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;3、检查&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n48&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;ls /usr/lib64|grep libfastcommon&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;ls /usr/lib|grep libfastcommon&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n49&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;出现&lt;/span&gt;&lt;span md-inline=&quot;code&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;code style=&quot;box-sizing: border-box;font-family: var(--monospace);vertical-align: initial;border: 1px solid rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em&quot;&gt;libfastcommon.so&lt;/code&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;即成功&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n50&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2.2 编译安装 fastdfs&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n51&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;1、进入解压后的目录&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n52&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;cd&amp;nbsp;/root/download/fastdfs-6.06&lt;/pre&gt;&lt;p cid=&quot;n53&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p md-focus&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain md-expand&quot; style=&quot;box-sizing: border-box&quot;&gt;2、编译安装&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n54&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;./make.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;./make.sh&amp;nbsp;install&lt;/pre&gt;&lt;p cid=&quot;n55&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;3、检查&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n56&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;ls&amp;nbsp;/usr/bin|grep&amp;nbsp;fdfs&lt;/pre&gt;&lt;p cid=&quot;n57&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;4、启用配置文件&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n58&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;cd /etc/fdfs/&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;cp storage.conf.sample storage.conf&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;cp client.conf.sample client.conf&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;cp tracker.conf.sample tracker.conf&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;mkdir -p /fastdfs/tracker&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n59&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;5、修改 tracker.conf 文件&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n60&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;vi&amp;nbsp;/etc/fdfs/tracker.conf&lt;/pre&gt;&lt;blockquote cid=&quot;n61&quot; mdtype=&quot;blockquote&quot; style=&quot;box-sizing: border-box;margin: 0.8em 0px;border-left: 4px solid rgb(223, 226, 229);padding: 0px 15px;color: rgb(119, 119, 119);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;white-space: normal&quot;&gt;&lt;p cid=&quot;n62&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0px;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;base_path = /fastdfs/tracker&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p cid=&quot;n63&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;6、启动 tracker 服务&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n64&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;/etc/init.d/fdfs_trackerd&amp;nbsp;start&lt;/pre&gt;&lt;p cid=&quot;n65&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;7、检查服务是否启动&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n66&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;ps&amp;nbsp;-ef|grep&amp;nbsp;fdfs&lt;/pre&gt;&lt;p cid=&quot;n67&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;8、修改 storage.conf 文件&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n68&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;vi&amp;nbsp;/etc/fdfs/storage.conf&lt;/pre&gt;&lt;blockquote cid=&quot;n69&quot; mdtype=&quot;blockquote&quot; style=&quot;box-sizing: border-box;margin: 0.8em 0px;border-left: 4px solid rgb(223, 226, 229);padding: 0px 15px;color: rgb(119, 119, 119);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;white-space: normal&quot;&gt;&lt;p cid=&quot;n70&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0px;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;base_path = /fastdfs/storage store_path0 = /fastdfs/storage&lt;/span&gt; &lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;tracker_server = 192.168.0.154:22122&lt;/span&gt; &lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;http.server_port = 80&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p cid=&quot;n71&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p cid=&quot;n72&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;9、创建目录&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n73&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;mkdir&amp;nbsp;-p&amp;nbsp;/fastdfs/storage&lt;/pre&gt;&lt;p cid=&quot;n74&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;10、启动 storage 服务&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n75&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;/etc/init.d/fdfs_storaged&amp;nbsp;start&lt;/pre&gt;&lt;p cid=&quot;n76&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;11、设置开机启动&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n77&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;vi&amp;nbsp;/etc/rc.d/rc.local&lt;/pre&gt;&lt;p cid=&quot;n78&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;加入配置&lt;/span&gt;&lt;/p&gt;&lt;blockquote cid=&quot;n79&quot; mdtype=&quot;blockquote&quot; style=&quot;box-sizing: border-box;margin: 0.8em 0px;border-left: 4px solid rgb(223, 226, 229);padding: 0px 15px;color: rgb(119, 119, 119);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;white-space: normal&quot;&gt;&lt;p cid=&quot;n80&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0px;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;/etc/init.d/fdfs_trackerd start&lt;/span&gt; &lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;/etc/init.d/fdfs_storaged start&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p cid=&quot;n82&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;12、编辑 client.conf 文件&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n83&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;vi&amp;nbsp;/etc/fdfs/client.conf&lt;/pre&gt;&lt;p cid=&quot;n84&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;修改&lt;/span&gt;&lt;/p&gt;&lt;blockquote cid=&quot;n85&quot; mdtype=&quot;blockquote&quot; style=&quot;box-sizing: border-box;margin: 0.8em 0px;border-left: 4px solid rgb(223, 226, 229);padding: 0px 15px;color: rgb(119, 119, 119);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;white-space: normal&quot;&gt;&lt;p cid=&quot;n86&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0px;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;base_path=/fastdfs/tracker&lt;/span&gt; &lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;tracker_server=192.168.0.154:22122&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;h3 cid=&quot;n88&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2.3 安装 nginx 和 fastdfs-nginx-module&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n89&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;1、安装pcre&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n90&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;yum&amp;nbsp;-y&amp;nbsp;install&amp;nbsp;pcre&amp;nbsp;pcre-devel&lt;/pre&gt;&lt;p cid=&quot;n91&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2、进入解压目录&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n92&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;cd&amp;nbsp;/root/download/nginx-1.17.7&lt;/pre&gt;&lt;p cid=&quot;n93&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;3、添加 http_stub_status_module 模块&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n94&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;./configure&amp;nbsp;--prefix=/usr/local/nginx&amp;nbsp;--with-http_stub_status_module&lt;/pre&gt;&lt;p cid=&quot;n95&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;4、进入 /root/download/fastdfs-nginx-module-1.22/src/&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n96&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;cd&amp;nbsp;/root/download/fastdfs-nginx-module-1.22/src/&lt;/pre&gt;&lt;p cid=&quot;n97&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;5、编辑配置文件&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n98&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;vi&amp;nbsp;config&lt;/pre&gt;&lt;p cid=&quot;n99&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;6、将config文件中的/usr/local替换成/usr&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n100&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;:%s+/usr/local+/usr&lt;/pre&gt;&lt;p cid=&quot;n101&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;7、进入 nginx 解压目录&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n102&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;cd&amp;nbsp;/root/download/nginx-1.17.7&lt;/pre&gt;&lt;p cid=&quot;n103&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;8、添加fastdfs-nginx-module&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n104&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;./configure&amp;nbsp;--add-module=/root/download/fastdfs-nginx-module-1.22/src/&lt;/pre&gt;&lt;p cid=&quot;n105&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;9、编译安装&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n106&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;make&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;p cid=&quot;n107&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;10、复制并修改fastdfs-ngin-module中的配置文件&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n108&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;cp /root/download/fastdfs-nginx-module-1.22/src/mod_fastdfs.conf /etc/fdfs/&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;vi /etc/fdfs/mod_fastdfs.conf&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n109&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;修改配置&lt;/span&gt;&lt;/p&gt;&lt;blockquote cid=&quot;n110&quot; mdtype=&quot;blockquote&quot; style=&quot;box-sizing: border-box;margin: 0.8em 0px;border-left: 4px solid rgb(223, 226, 229);padding: 0px 15px;color: rgb(119, 119, 119);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;white-space: normal&quot;&gt;&lt;p cid=&quot;n111&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0px;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;connect_timeout=10&lt;/span&gt; &lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;tracker_server=192.168.0.154:22122&lt;/span&gt; &lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;url_have_group_name = true&lt;/span&gt; &lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;store_path0=/fastdfs/storage&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p cid=&quot;n113&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;11、进入fastdfd源码conf目录&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n114&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;cd&amp;nbsp;/root/download/fastdfs-6.06/conf/&lt;/pre&gt;&lt;p cid=&quot;n115&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;12、将http.conf，mime.types两个文件拷贝到/etc/fdfs/目录下&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n116&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;cp&amp;nbsp;http.conf&amp;nbsp;mime.types&amp;nbsp;/etc/fdfs/&lt;/pre&gt;&lt;p cid=&quot;n117&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;13、创建一个软连接，在/fastdfs/storage文件存储目录下创建软连接，将其链接到实际存放数据 的目录&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n118&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;ln&amp;nbsp;-s&amp;nbsp;/fastdfs/storage/data/&amp;nbsp;/fastdfs/storage/data/M00&lt;/pre&gt;&lt;p cid=&quot;n119&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;14、编辑 nginx 配置&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n120&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;vi&amp;nbsp;/usr/local/nginx/conf/nginx.conf&lt;/pre&gt;&lt;p cid=&quot;n121&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;修改配置&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n122&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;server {&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;listen &amp;nbsp; &amp;nbsp; &amp;nbsp; 80;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;server_name &amp;nbsp;192.168.0.154;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;location ~/group([0-9])/M00 {&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;root &amp;nbsp;/fastdfs/storage/data;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ngx_fastdfs_module;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n123&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;15、启动 nginx&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n124&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;/usr/local/nginx/sbin/nginx&lt;/pre&gt;&lt;p cid=&quot;n125&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h1 cid=&quot;n126&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 2.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.2;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;三、测试&lt;/span&gt;&lt;/h1&gt;&lt;p cid=&quot;n127&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;1、下载测试图片到本地&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n128&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;wget&amp;nbsp;-c&amp;nbsp;&amp;quot;https://gss0.baidu.com/-vo3dSag_xI4khGko9WTAnF6hhy/zhidao/wh%3D600%2C800/sign=0f6379cdd8ca7bcb7d2ecf298e39475b/42a98226cffc1e17f7efcc3f4590f603738de968.jpg&amp;quot;&amp;nbsp;-O&amp;nbsp;boy.jpg&lt;/pre&gt;&lt;p cid=&quot;n129&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2、上传测试图片&lt;/span&gt;&lt;/p&gt;&lt;pre spellcheck=&quot;false&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; lang=&quot;&quot; cid=&quot;n130&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;/usr/bin/fdfs_upload_file&amp;nbsp;/etc/fdfs/client.conf&amp;nbsp;/root/download/boy.jpg&lt;/pre&gt;&lt;p cid=&quot;n131&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;得到返回文件名&lt;/span&gt;&lt;/p&gt;&lt;blockquote cid=&quot;n132&quot; mdtype=&quot;blockquote&quot; style=&quot;box-sizing: border-box;margin: 0.8em 0px;border-left: 4px solid rgb(223, 226, 229);padding: 0px 15px;color: rgb(119, 119, 119);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;white-space: normal&quot;&gt;&lt;p cid=&quot;n133&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0px;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;group1/M00/00/00/wKgAml4RxbyARj9lAACxR4LEYRg912.jpg&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p cid=&quot;n134&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;与ip拼接：&lt;/span&gt;&lt;span md-inline=&quot;url&quot; class=&quot;md-link md-pair-s md-expand&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;a href=&quot;http://192.168.0.154/group1/M00/00/00/wKgAml4RxbyARj9lAACxR4LEYRg912.jpg&quot; style=&quot;box-sizing: border-box;cursor: pointer;color: rgb(65, 131, 196);-webkit-user-drag: none&quot;&gt;http://192.168.0.154/group1/M00/00/00/wKgAml4RxbyARj9lAACxR4LEYRg912.jpg&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n134&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px;&quot;&gt;&lt;img style=&quot;vertical-align: middle; margin-right: 2px;&quot; src=&quot;https://www.mpzdsw.cn/zb_users/plugin/Neditor/dialogs/attachment/fileTypeImages/icon_rar.gif&quot;/&gt;&lt;a style=&quot;font-size:12px; color:#0066cc;&quot; href=&quot;https://www.mpzdsw.cn/zb_users/upload/2022/07/202207242049419321533.zip&quot; title=&quot;fastdfs-nginx-module-1.22.zip&quot;&gt;fastdfs-nginx-module-1.22.zip&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px;&quot;&gt;&lt;img style=&quot;vertical-align: middle; margin-right: 2px;&quot; src=&quot;https://www.mpzdsw.cn/zb_users/plugin/Neditor/dialogs/attachment/fileTypeImages/icon_rar.gif&quot;/&gt;&lt;a style=&quot;font-size:12px; color:#0066cc;&quot; href=&quot;https://www.mpzdsw.cn/zb_users/upload/2022/07/202207242049418862234.zip&quot; title=&quot;libfastcommon-1.0.53.zip&quot;&gt;libfastcommon-1.0.53.zip&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px;&quot;&gt;&lt;img style=&quot;vertical-align: middle; margin-right: 2px;&quot; src=&quot;https://www.mpzdsw.cn/zb_users/plugin/Neditor/dialogs/attachment/fileTypeImages/icon_rar.gif&quot;/&gt;&lt;a style=&quot;font-size:12px; color:#0066cc;&quot; href=&quot;https://www.mpzdsw.cn/zb_users/upload/2022/07/202207242049429203569.zip&quot; title=&quot;fastdfs-6.07.zip&quot;&gt;fastdfs-6.07.zip&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sun, 24 Jul 2022 19:48:31 +0800</pubDate></item><item><title>设计模式</title><link>https://www.mpzdsw.cn/?id=90</link><description>&lt;h1 cid=&quot;n170&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 2.25em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.2; cursor: text; border-bottom: 1px solid rgb(238, 238, 238); white-space: pre-wrap; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;设计模式&lt;/span&gt;&lt;/h1&gt;&lt;p cid=&quot;n340&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;为什么会出现设计模式&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;ol-list list-paddingleft-2&quot; cid=&quot;n344&quot; mdtype=&quot;list&quot; style=&quot;box-sizing: border-box; margin-top: 0.8em; margin-bottom: 0.8em; padding-left: 30px; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; white-space: normal;&quot;&gt;&lt;li&gt;&lt;p cid=&quot;n341&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;代码重用性&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n345&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;可读性&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n348&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;可扩展性&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n352&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;可靠性&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n355&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;使程序呈现高内聚,低耦合的特性&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h2 cid=&quot;n172&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.75em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.225; cursor: text; border-bottom: 1px solid rgb(238, 238, 238); white-space: pre-wrap; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;1.七大原则&lt;/span&gt;&lt;/h2&gt;&lt;ol class=&quot;ol-list list-paddingleft-2&quot; start=&quot;&quot; cid=&quot;n173&quot; mdtype=&quot;list&quot; style=&quot;box-sizing: border-box; margin-top: 0.8em; margin-bottom: 0.8em; padding-left: 30px; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; white-space: normal;&quot;&gt;&lt;li&gt;&lt;p cid=&quot;n175&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;单一职责原则&lt;span style=&quot;color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; orphans: 4; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;(Single Responsibility Principle)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n336&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.5rem; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;对类来说的,既一个类应该只负责一项职责&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n336&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.5rem; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n177&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;接口隔离原则&lt;span style=&quot;color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; orphans: 4; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;(Interface Segregation Principle)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n177&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; orphans: 4; white-space: pre-wrap;&quot;&gt;客户端&lt;/span&gt;不应该依赖它不需要的接口,既&lt;strong&gt;一个类对另一个类的依赖应该建立在最小的接口上&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n179&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain md-expand&quot; style=&quot;box-sizing: border-box;&quot;&gt;依赖倒转(倒置)原则&lt;span style=&quot;color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; orphans: 4; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;(Dependence Inversion Principle)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n179&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain md-expand&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; orphans: 4; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; orphans: 4; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;程序要依赖于抽象接口，不要依赖于具体实现&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n181&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;里氏替换原则(Liskov Substitution principle)&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n181&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;color: #4D4D4D; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; background-color: #FFFFFF;&quot;&gt;如果将一个父类对象替换成它的子类对象后，该程序不会发生异常。这也是该原则希望达到的一种理想状态&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n183&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;开闭原则(Open Closed Principle)&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n183&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; orphans: 4; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;对于扩展(提供方)是开放的，但是对于修改(使用方)是封闭的。用抽象构建框架,用实现扩展细节&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n185&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;迪米特法则(Law of Demeter)&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n185&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;又叫作最少知识原则（The Least Knowledge Principle），一个类对于其他类知道的越少越好，就是说一个对象应当对其他对象有尽可能少的了解,只和朋友通信，不和陌生人说话。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n187&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;合成复用原则&lt;span style=&quot;color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; orphans: 4; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;(Composite Reuse Principle)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n187&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; orphans: 4; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;尽量使用对象组合（contains-A）/聚合（has-A），而不是继承关系达到软件复用的目的&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n187&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h2 cid=&quot;n188&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.75em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.225; cursor: text; border-bottom: 1px solid rgb(238, 238, 238); white-space: pre-wrap; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;2.类图六大关系&lt;/span&gt;&lt;/h2&gt;&lt;h3 cid=&quot;n189&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;2.1.依赖&lt;/span&gt;&lt;/h3&gt;&lt;ul class=&quot;ul-list list-paddingleft-2&quot; cid=&quot;n190&quot; mdtype=&quot;list&quot; data-mark=&quot;-&quot; style=&quot;box-sizing: border-box; margin-top: 0.8em; margin-bottom: 0.8em; padding-left: 30px; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; white-space: normal;&quot;&gt;&lt;li&gt;&lt;p cid=&quot;n192&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;只要是在类中用到了对方，那么他们就存在依赖关系。如果没有对方，连编译都过不了&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n194&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;类的成员属性&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n196&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;方法的返回类型&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n198&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;方法的接收参数类型&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n200&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;方法内使用到了&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n202&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20221202102309195.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box; min-width: 10px; min-height: 10px; position: relative; word-break: break-all; font-family: monospace; vertical-align: top; display: inline-block; width: 770px;&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/03/202303110748377407007.png&quot; alt=&quot;image-20221202102309195.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n203&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;2.2.泛化&lt;/span&gt;&lt;/h3&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n205&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;泛化关系实际上就是&lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;依赖关系&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;，他是依赖关系的特例&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n207&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/03/202303110748489742943.png&quot; alt=&quot;image-20221202102425942.png&quot;/&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 cid=&quot;n208&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;2.3.实现&lt;/span&gt;&lt;/h3&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n210&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;实现关系实际上就是&lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;A类实现了B接口&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;，他是依赖关系的特例&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n212&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20221202102524244.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box; min-width: 10px; min-height: 10px; position: relative; word-break: break-all; font-family: monospace; vertical-align: top; display: inline-block; width: 770px;&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2023/03/202303110749001982799.png&quot; alt=&quot;image-20221202102524244.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n213&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;2.4.关联&lt;/span&gt;&lt;/h3&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n215&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;关联关系实际上就是&lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;类与类之间的联系&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;，他是依赖关系的特例&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n217&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;关联关系具有&lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;导航性&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;：即双向关系或者单向关系&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n219&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;关系具有多重性&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 cid=&quot;n220&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;2.5.聚合&lt;/span&gt;&lt;/h3&gt;&lt;ul class=&quot;ul-list list-paddingleft-2&quot; cid=&quot;n221&quot; mdtype=&quot;list&quot; data-mark=&quot;-&quot; style=&quot;box-sizing: border-box; margin-top: 0.8em; margin-bottom: 0.8em; padding-left: 30px; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; white-space: normal;&quot;&gt;&lt;li&gt;&lt;p cid=&quot;n223&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;聚合关系(Aggregation)表示的是&lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;整体和部分的关系，整体和部分可以分开&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;。聚合关系是关联关系的特例，所以他具有关联&lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;关系的导航性和多重性&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 cid=&quot;n224&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;2.6.组合&lt;/span&gt;&lt;/h3&gt;&lt;ul class=&quot;ul-list list-paddingleft-2&quot; cid=&quot;n225&quot; mdtype=&quot;list&quot; data-mark=&quot;-&quot; style=&quot;box-sizing: border-box; margin-top: 0.8em; margin-bottom: 0.8em; padding-left: 30px; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; white-space: normal;&quot;&gt;&lt;li&gt;&lt;p cid=&quot;n227&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;也是整体与部分的关系，但是&lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;整体与部分不可以分开&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 cid=&quot;n228&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; orphans: 4; font-size: 1.75em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.225; cursor: text; border-bottom: 1px solid rgb(238, 238, 238); white-space: pre-wrap; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;3.设计模式&lt;/span&gt;&lt;/h2&gt;&lt;p cid=&quot;n229&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;设计模式是程序员面对同类软件工程设计问题所总结出来的有用的经验，模式不是代码，二十某类问题的通用解决方案，设计模式(Design pattern)代表了最佳的实践。这些解决方案是众多软件开发人员经过相当长的一段时间的实验和错误总结出来的。&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n230&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;设计模式分为三种类型&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;，共23种&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;ol-list list-paddingleft-2&quot; start=&quot;&quot; cid=&quot;n231&quot; mdtype=&quot;list&quot; style=&quot;box-sizing: border-box; margin-top: 0.8em; margin-bottom: 0.8em; padding-left: 30px; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; white-space: normal;&quot;&gt;&lt;li&gt;&lt;p cid=&quot;n233&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;创建型模式：&lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;单例模式&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;、抽象工厂模式、原型模式、建造者模式、&lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;工厂模式&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n235&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;结构型模式：适配器模式、桥接模式、&lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;装饰模式&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;、组合模式、外观模式、享元模式、&lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;代理模式&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p cid=&quot;n237&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p md-focus&quot; style=&quot;box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0px; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;行为型模式：模板方法模式、命令模式、访问者模式、代理器模式、&lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;观察者模式&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;、中介者模式、备忘录模式、解释器模式、状态模式、策略模式、职责链模式(责任链模式)。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Fri, 11 Mar 2022 07:41:12 +0800</pubDate></item><item><title>404页面分享</title><link>https://www.mpzdsw.cn/?id=79</link><description>&lt;p&gt;简约款&lt;/p&gt;&lt;pre class=&quot;brush:html;toolbar:false&quot;&gt;&amp;lt;!DOCTYPE&amp;nbsp;html&amp;gt;
&amp;lt;html&amp;nbsp;xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;meta&amp;nbsp;http-equiv=&amp;quot;content-type&amp;quot;&amp;nbsp;content=&amp;quot;text/html;&amp;nbsp;charset=utf-8&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;meta&amp;nbsp;name=&amp;quot;viewport&amp;quot;&amp;nbsp;content=&amp;quot;width=device-width,&amp;nbsp;initial-scale=1.0,&amp;nbsp;user-scalable=0,&amp;nbsp;minimum-scale=1.0,&amp;nbsp;maximum-scale=1.0&amp;quot;/&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;title&amp;gt;404&amp;lt;/title&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;style&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;body&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;margin:&amp;nbsp;0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;padding:&amp;nbsp;0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;font-family:&amp;nbsp;Helvetica,&amp;nbsp;Arial,&amp;nbsp;&amp;quot;PingFang&amp;nbsp;SC&amp;quot;,&amp;nbsp;&amp;quot;Microsoft&amp;nbsp;YaHei&amp;quot;,&amp;nbsp;&amp;quot;WenQuanYi&amp;nbsp;Micro&amp;nbsp;Hei&amp;quot;,&amp;nbsp;&amp;quot;tohoma,sans-serif&amp;quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;a,&amp;nbsp;button.submit&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color:&amp;nbsp;#6E7173;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text-decoration:&amp;nbsp;none;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-webkit-transition:&amp;nbsp;all&amp;nbsp;.1s&amp;nbsp;ease-in;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-moz-transition:&amp;nbsp;all&amp;nbsp;.1s&amp;nbsp;ease-in;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-o-transition:&amp;nbsp;all&amp;nbsp;.1s&amp;nbsp;ease-in;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;transition:&amp;nbsp;all&amp;nbsp;.1s&amp;nbsp;ease-in;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;a:hover,&amp;nbsp;a:active&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color:&amp;nbsp;#6E7173;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.body404&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;position:&amp;nbsp;absolute;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;height:&amp;nbsp;100%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;width:&amp;nbsp;100%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;background:&amp;nbsp;#fff;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;background-size:&amp;nbsp;auto&amp;nbsp;100%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text-shadow:&amp;nbsp;1px&amp;nbsp;1px&amp;nbsp;0&amp;nbsp;#fff;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.body-about&amp;nbsp;.body404&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;background:&amp;nbsp;#fff;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.site-name404&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;margin:&amp;nbsp;0&amp;nbsp;auto;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text-align:&amp;nbsp;center;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;letter-spacing:&amp;nbsp;2px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;font:&amp;nbsp;normal&amp;nbsp;150px/1&amp;nbsp;“Helvetica&amp;nbsp;Neue”,&amp;nbsp;Helvetica,&amp;nbsp;Arial;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color:&amp;nbsp;#444;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.site-name404&amp;nbsp;h1&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;margin:&amp;nbsp;0&amp;nbsp;0&amp;nbsp;10px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;font-size:&amp;nbsp;50px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;line-height:&amp;nbsp;1.2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.title404&amp;nbsp;span&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;font-size:&amp;nbsp;15px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;width:&amp;nbsp;2px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.site-name404&amp;nbsp;i&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;font-style:&amp;nbsp;normal;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.title404&amp;nbsp;p&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;font-size:&amp;nbsp;20px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;line-height:&amp;nbsp;1.5;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;margin:&amp;nbsp;0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color:&amp;nbsp;#444;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.info404&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;position:&amp;nbsp;absolute;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;top:&amp;nbsp;50%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text-align:&amp;nbsp;center;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;width:&amp;nbsp;100%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;margin-top:&amp;nbsp;-160px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.body-about&amp;nbsp;.info404&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;margin-top:&amp;nbsp;-180px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#footer404&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;margin-top:&amp;nbsp;30px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;font-size:&amp;nbsp;10px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.index404&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;margin-top:&amp;nbsp;24px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;display:&amp;nbsp;inline-block;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;white-space:&amp;nbsp;nowrap;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cursor:&amp;nbsp;pointer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;background:&amp;nbsp;#444;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;letter-spacing:&amp;nbsp;1px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;font-size:&amp;nbsp;14px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-moz-user-select:&amp;nbsp;-moz-none;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-webkit-user-select:&amp;nbsp;none;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-ms-user-select:&amp;nbsp;none;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-o-user-select:&amp;nbsp;none;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;user-select:&amp;nbsp;none;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text-shadow:&amp;nbsp;none;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;border:&amp;nbsp;1px&amp;nbsp;solid&amp;nbsp;#ccc;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;line-height:&amp;nbsp;36px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text-align:&amp;nbsp;center;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;height:&amp;nbsp;36px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;padding:&amp;nbsp;0&amp;nbsp;25px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;border-radius:&amp;nbsp;16px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-webkit-transition-duration:&amp;nbsp;400ms;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;transition-duration:&amp;nbsp;400ms;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;background-color:&amp;nbsp;#fff;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color:&amp;nbsp;#999;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.index404:hover&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color:&amp;nbsp;#F77B83;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;border-color:&amp;nbsp;#F77B83;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;outline-style:&amp;nbsp;none;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.icon-about&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;padding:&amp;nbsp;10px&amp;nbsp;0&amp;nbsp;25px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.icon-about&amp;nbsp;a&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;font-size:&amp;nbsp;20px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;margin:&amp;nbsp;5px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color:&amp;nbsp;#fff;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;background-color:&amp;nbsp;#000;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;border-radius:&amp;nbsp;100%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;padding:&amp;nbsp;6px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;header&amp;nbsp;id=&amp;quot;header404&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;gt;&amp;lt;i&amp;gt;404&amp;lt;/i&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/header&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;section&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;p&amp;gt;可&amp;nbsp;能&amp;nbsp;我&amp;nbsp;们&amp;nbsp;真&amp;nbsp;的&amp;nbsp;走&amp;nbsp;错&amp;nbsp;了&amp;nbsp;！&amp;lt;/p&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;br&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;script&amp;nbsp;type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;gt;无论失去什么，都不要失去好心情。拥有一颗安闲自在的心，让心境清净，洁白，安静。&amp;lt;/div&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;a&amp;nbsp;href=&amp;quot;/&amp;quot;&amp;gt;点击返回&amp;lt;/a&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/section&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;p&gt;效果&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/11/202111241826491841851.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 24 Nov 2021 18:25:17 +0800</pubDate></item><item><title>远程办公以及实现内网穿透-FRP</title><link>https://www.mpzdsw.cn/?id=78</link><description>&lt;p cid=&quot;n8&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;利用云服务实现远程办公和内网穿透访问内网服务&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n15&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;strong&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;strong style=&quot;box-sizing: border-box&quot;&gt;应用场景&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n13&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;1.在家远程公司电脑&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n19&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2.同事之间远程调用本地服务&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n69&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;原理&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n70&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;frp 主要由 &lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;strong style=&quot;box-sizing: border-box&quot;&gt;客户端(frpc)&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt; 和 &lt;/span&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;strong style=&quot;box-sizing: border-box&quot;&gt;服务端(frps)&lt;/strong&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt; 组成，服务端通常部署在具有公网 IP 的机器上，客户端通常部署在需要穿透的内网服务所在的机器上。&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n71&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;内网服务由于没有公网 IP，不能被非局域网内的其他用户访问。&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n72&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;用户通过访问服务端的 frps，由 frp 负责根据请求的端口或其他信息将请求路由到对应的内网机器，从而实现通信。&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n73&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;代理&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n74&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;在 frp 中一个代理对应一个需要暴露的内网服务。一个客户端支持同时配置多个代理。&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n75&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;代理类型&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n76&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;frp 支持多种代理类型来适配不同的使用场景。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure cid=&quot;n77&quot; mdtype=&quot;table&quot; style=&quot;box-sizing: border-box;margin: 1.2em 0px;overflow-x: auto;max-width: calc(100% + 16px);padding: 0px;cursor: default;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;white-space: normal&quot;&gt;&lt;table width=&quot;684&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;background-color: rgb(248, 248, 248)&quot;&gt;&lt;tr cid=&quot;n78&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border: 1px solid rgb(223, 226, 229);padding: 0px&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;padding: 6px 13px;border-bottom: 0px;border-top-color: rgb(223, 226, 229);border-right-color: rgb(223, 226, 229);border-left-color: rgb(223, 226, 229)&quot;&gt;&lt;span cid=&quot;n79&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 56.4px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;类型&lt;/span&gt;&lt;/span&gt;&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;padding: 6px 13px;border-bottom: 0px;border-top-color: rgb(223, 226, 229);border-right-color: rgb(223, 226, 229);border-left-color: rgb(223, 226, 229)&quot;&gt;&lt;span cid=&quot;n80&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 573.2px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;描述&lt;/span&gt;&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box&quot;&gt;&lt;tr cid=&quot;n81&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border: 1px solid rgb(223, 226, 229);padding: 0px&quot;&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n82&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 56.4px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;tcp&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n83&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 573.2px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;单纯的 TCP 端口映射，服务端会根据不同的端口路由到不同的内网服务。&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr cid=&quot;n84&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border: 1px solid rgb(223, 226, 229);padding: 0px;background-color: rgb(248, 248, 248)&quot;&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n85&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 56.4px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;udp&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n86&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 573.2px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;单纯的 UDP 端口映射，服务端会根据不同的端口路由到不同的内网服务。&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr cid=&quot;n87&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border: 1px solid rgb(223, 226, 229);padding: 0px&quot;&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n88&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 56.4px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;http&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n89&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 573.2px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;针对 HTTP 应用定制了一些额外的功能，例如修改 Host Header，增加鉴权。&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr cid=&quot;n90&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border: 1px solid rgb(223, 226, 229);padding: 0px;background-color: rgb(248, 248, 248)&quot;&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n91&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 56.4px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;https&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n92&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 573.2px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;针对 HTTPS 应用定制了一些额外的功能。&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr cid=&quot;n93&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border: 1px solid rgb(223, 226, 229);padding: 0px&quot;&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n94&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 56.4px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;stcp&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n95&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 573.2px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;安全的 TCP 内网代理，需要在被访问者和访问者的机器上都部署 frpc，不需要在服务端暴露端口。&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr cid=&quot;n96&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border: 1px solid rgb(223, 226, 229);padding: 0px;background-color: rgb(248, 248, 248)&quot;&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n97&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 56.4px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;sudp&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n98&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 573.2px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;安全的 UDP 内网代理，需要在被访问者和访问者的机器上都部署 frpc，不需要在服务端暴露端口。&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr cid=&quot;n99&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border: 1px solid rgb(223, 226, 229);padding: 0px&quot;&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n100&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 56.4px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;xtcp&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n101&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 573.2px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;点对点内网穿透代理，功能同 stcp，但是流量不需要经过服务器中转。&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr cid=&quot;n102&quot; mdtype=&quot;table_row&quot; style=&quot;box-sizing: border-box;break-inside: avoid;break-after: auto;border: 1px solid rgb(223, 226, 229);padding: 0px;background-color: rgb(248, 248, 248)&quot;&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n103&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 56.4px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;tcpmux&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px&quot;&gt;&lt;span cid=&quot;n104&quot; mdtype=&quot;table_cell&quot; style=&quot;box-sizing: border-box;display: inline-block;min-width: 1ch;width: 573.2px;min-height: 10px&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;支持服务端 TCP 端口的多路复用，通过同一个端口访问不同的内网服务。&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 cid=&quot;n33&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;安装配置&lt;/span&gt;&lt;/h2&gt;&lt;p cid=&quot;n36&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;我这里服务端使用的是linux系统 客户端是windows系统 使用的frp版本是最新版V0.38.0&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n48&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;下载地址&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n40&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;url&quot; class=&quot;md-link md-pair-s&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;a href=&quot;https://github.com/fatedier/frp/releases/&quot; style=&quot;box-sizing: border-box;cursor: pointer;color: rgb(65, 131, 196);-webkit-user-drag: none&quot;&gt;https://github.com/fatedier/frp/releases/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n44&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;把下载的对应的版本上传到服务端&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n50&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20211122115917561.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 684px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/11/202111221844439683758.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n54&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;之后解压&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n58&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;mkdir&lt;/span&gt; frp&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;tar &lt;span style=&quot;box-sizing: border-box;color: #0000CC&quot;&gt;-zxvf&lt;/span&gt; frp_0.38.0_linux_386.tar.gz&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;cp&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box;color: #0000CC&quot;&gt;-r&lt;/span&gt; frp_0.38.0_linux_386/* ./frp&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;rm&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box;color: #0000CC&quot;&gt;-rf&lt;/span&gt; ./frp_0.38.0_linux_386*&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;cd&lt;/span&gt; frp&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;chmod&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box;color: #116644&quot;&gt;777&lt;/span&gt; ./frps&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;vim&lt;/span&gt; frps.ini&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;md-end-block md-p&quot; mdtype=&quot;paragraph&quot; cid=&quot;n38&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;配置完服务端 客户端根据自己平台下载对应的产品&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n281&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20211122143532183.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 684px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/11/202111221844494206606.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;md-end-block md-p&quot; mdtype=&quot;paragraph&quot; cid=&quot;n280&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;下方有配置文件说明&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n287&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;服务端启动命令 &lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n291&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;./frps&amp;nbsp;-c&amp;nbsp;./frps.ini&lt;/pre&gt;&lt;p class=&quot;md-end-block md-p&quot; mdtype=&quot;paragraph&quot; cid=&quot;n285&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;客户端启动命令&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n296&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;frpc.exe&amp;nbsp;-c&amp;nbsp;./frpc.ini&lt;/pre&gt;&lt;h3 cid=&quot;n286&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;服务端配置 可参考frps_full.ini进行配置&lt;/span&gt;&lt;/h3&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n58&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 基础配置&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 服务端监听地址 0.0.0.0是默认所有IP访问 IPv6地址需要带中括号包围 例如[ab:1a:ff:1c:cc:6a] 这里默认无需修改&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 服务端监听端口 接收 frpc 的连接&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 服务端监听 UDP 端口 用于辅助创建 P2P 连接 不使用可注释&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_udp_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7001&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 服务端监听 KCP 协议端口 用于接收采用 KCP 连接的 frpc 不使用可注释&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;kcp_bind_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 代理监听地址，默认值与bind_addr相同 可以使代理监听在不同的网卡地址&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# proxy_bind_addr = 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 日志输出文件路径地址 可修改位置 这里默认当前路径&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;log_file &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; ./frps.log&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 日志等级 默认info 如果觉得日志过多可以调整日志级别&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;log_level &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; info&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 日志文件保留天数&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;log_max_days &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 3&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 当日期文件为控制台时禁用颜色 默认false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;disable_log_color &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 服务端返回详细错误信息给客户端 默认为true&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;detailed_errors_to_client &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; true&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 服务端和客户端心跳连接的超时时间 默认90&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# heartbeat_timeout = 90&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 用户建立连接后等待客户端响应的超时时间&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# user_conn_timeout = 10&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# upd数据包大小 默认1500&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;udp_packet_size &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 1500&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# TLS 服务端证书文件路径&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# tls_cert_file = server.crt&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# TLS 服务端密钥文件路径&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# tls_key_file = server.key&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# TLS CA 证书路径&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# tls_trusted_ca_file = ca.crt&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [权限验证]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 鉴权方式 默认 token 可选值 token, oidc&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;authentication_method &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; token&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 开启心跳消息鉴权 默认false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;authenticate_heartbeats &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 开启建立工作连接的鉴权&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;authenticate_new_work_conns &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 鉴权使用的 token 值 这里设置123456 自行修改&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# oidc_issuer =&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# oidc_audience =&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# oidc_skip_expiry_check = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# oidc_skip_issuer_check = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [管理配置]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 只允许客户端绑定端口 格式为 1000-2000,2001,3000-4000 可以根据自己需求修改&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;allow_ports &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 2000-3000,3001,3003,4000-50000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 最大连接池数量 &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;max_pool_count &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 5&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 限制单个客户端最大同时存在的代理数 0为不限制&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;max_ports_per_client &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 只接受启用了 TLS 的客户端连接 默认为false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;tls_only &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [Dashboarh(管理面板), 监控]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 管理面板可访问地址 0.0.0.0允许所有 IPv6加中括号&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 管理面板端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7500&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 管理面板账号密码&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_user &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_pwd &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 是否提供 Prometheus 监控接口 需要同时启用了 Dashboard 才会生效 &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;enable_prometheus &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; true&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# Web后台的静态资源目录 只支持debug模式 后台使用的资源默认打包在二进制文件中，通过指定此参数使用自定义的静态资源&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# assets_dir = ./static&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [HTTP &amp;amp; HTTPS]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 如果要支持虚拟主机，必须设置用于侦听的http端口（可选）&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 可以根据自己需要的端口修改 用于http和https访问端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;vhost_http_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8090&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# vhost_https_port = 443&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 响应超时时间 默认60s 无需修改 HTTP 类型代理在服务端的 ResponseHeader 超时时间&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# vhost_http_timeout = 60&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 二级域名后缀 自行修改域名 默认不开启&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# subdomain_host = baidu.com&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 自定义 404 错误页面地址&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# custom_404_page = /path/to/404.html&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [TCPMUX]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 为 TCPMUX 类型代理监听的端口 启用后才支持 TCPMUX 类型的代理，默认不启用&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# tcpmux_httpconnect_port = 1337&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;#[配置拆分] 通过 includes 参数可以在主配置中包含其他配置文件，从而实现将代理配置拆分到多个文件中管理&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# includes = ./confd/*.ini&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 用户管理插件设置&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [plugin.user-manager]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# addr = 127.0.0.1:9000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# path = /handler&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# ops = Login&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 端口管理插件&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [plugin.port-manager]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# addr = 127.0.0.1:9001&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# path = /handler&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# ops = NewProxy&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h3 cid=&quot;n42&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;客户端配置 可参考frpc_full.ini进行配置&lt;/span&gt;&lt;/h3&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n60&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [基础配置]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 连接服务端的地址 这里需要修改为服务端IP&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 1.2.3.4&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 连接服务端使用的代理地址 &amp;nbsp;格式为 {protocol}://user:passwd@192.168.1.128:8080 protocol 目前支持 http、socks5、ntlm&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# http_proxy = http://user:passwd@192.168.1.128:8080&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# http_proxy = socks5://user:passwd@192.168.1.128:1080&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# http_proxy = ntlm://user:passwd@192.168.1.128:2080&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 日志文件地址 这里是客户端配置 所以我不需要 就注释掉&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# log_file = ./frpc.log&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 日志级别 trace, debug, info, warn, error&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# log_level = info&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 日志保留天数&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# log_max_days = 3&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 禁用标准输出中的日志颜色 &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# disable_log_color = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 连接池大小&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# pool_count = 0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 用户名 设置此参数后，代理名称会被修改为 {user}.{proxyName}，避免代理名称和其他用户冲突&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# user = user&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 使用 DNS 服务器地址 默认使用系统配置的 DNS 服务器，指定此参数可以强制替换为自定义的 DNS 服务器地址&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# dns_server= 114.114.114.114&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 第一次登陆失败后是否退出 默认true 我这里修改为false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;login_fail_exit &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 连接服务端的通信协议 默认TCP 可选值 tcp, kcp, websocket&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;protocol &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 启用 TLS 协议(安全传输层协议)加密连接 默认false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# tls_enable = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# TLS 客户端证书文件路径&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# tls_cert_file = client.crt&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# TLS 客户端密钥文件路径&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# tls_key_file = client.key&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# TLS CA 证书路径&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# tls_trusted_ca_file = ca.crt&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# TLS Server 名称&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# tls_server_name = example.com&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# TLS 不发送 0x17 默认为false 当为 true 时，不能端口复用&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;disable_custom_tls_first_byte &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 向服务端发送心跳包的间隔时间 默认30 单位s&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# heartbeat_interval = 30&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 和服务端心跳的超时时间 默认90 单位s&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# heartbeat_timeout = 90&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 代理 UDP 服务时支持的最大包长度 服务端和客户端的值需要一致&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;udp_packet_size &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 1500&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 指定启用部分代理 当配置了较多代理，但是只希望启用其中部分时可以通过此参数指定，默认为全部启用&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# start = ssh,dns&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [权限验证]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 鉴权方式 需要和服务端一致 默认值token 可选值 token, oidc&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;authentication_method &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; token&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 开启心跳消息鉴权 需要和服务端一致&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;authenticate_heartbeats &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 开启建立工作连接的鉴权 需要和服务端一致&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;authenticate_new_work_conns &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 鉴权使用的 token 值 需要和服务端设置一样的值才能鉴权通过&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# OIDC（OpenId Connect）身份认证相关配置 我这里没用到就注释了&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# oidc_client_id =&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# oidc_client_secret =&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# oidc_audience =&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# oidc_token_endpoint_url =&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [AdminUI]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 启用 AdminUI 监听的本地地址 默认值 0.0.0.0 &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 启用 AdminUI 监听的本地端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7400&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_user &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_pwd &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 静态资源目录 AdminUI 使用的资源默认打包在二进制文件中，通过指定此参数使用自定义的静态资源&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# assets_dir = ./static&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [代理配置]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 这里注释的是非必须配置的 没有注释的则是必须配置的&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 转发ssh 此处是唯一的 整个配置文件只能有一个ssh标签&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[ssh]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [通用配置] 不管是什么协议都有的配置&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 代理类型默认tcp 可选值tcp, udp, http, https, stcp, sudp, xtcp, tcpmux&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;type &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 是否启用加密功能 启用后该代理和服务端之间的通信内容都会被加密传输&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_encryption = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 是否启用压缩功能&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_compression = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 启用 proxy protocol 协议的版本 默认值 无 可选值v1, v2&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 如果启用，则 frpc 和本地服务建立连接后会发送 proxy protocol 的协议，包含了原请求的 IP 地址和端口等内容&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# proxy_protocol_version = v1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 设置单个代理的带宽限流 单位为 MB 或 KB，0 表示不限制，如果启用，会作用于对应的 frpc&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# bandwidth_limit = 0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [本地服务配置]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_ip 和 plugin 的配置必须配置一个，且只能生效一个，如果配置了 plugin，则 local_ip 配置无效。&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 本地服务 IP 可代理本地局域网IP 例如192.168.0.x 默认是本地 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_ip &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 本地服务端口 配合 local_ip&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8081&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 用于扩展 frpc 的能力，能够提供一些简单的本地服务，如果配置了 plugin，则 local_ip 和 local_port 无效，两者只能配置一个&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin = &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 客户端插件参数 map 结构，key 需要都以 “plugin_” 开头，每一个 plugin 需要的参数也不一样，具体见客户端插件参数中的内容&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_params = &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [负载均衡和健康检查]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 负载均衡分组名称用户请求会以轮询的方式发送给同一个 group 中的代理 这个有点像nginx的代理做的&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# group = &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 负载均衡分组密钥 用于对负载均衡分组进行鉴权 group_key相同的代理才会被加入到同一个分组中&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# group_key = &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 健康检查类型 可选值tcp,http&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# health_check_type&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 健康检查超时时间(秒) 默认3&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# health_check_timeout_s = 3&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 健康检查连续错误次数 默认1 连续检查错误多少次认为服务不健康&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# health_check_max_failed = 1 &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 健康检查周期(秒) 默认10 每隔多长时间进行一次健康检查&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# health_check_interval_s = 10&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 健康检查的 HTTP 接口 如果 health_check_type 类型是 http，则需要配置此参数，指定发送 http 请求的 url，例如 “/health”&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# health_check_url = &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [TCP] 当type为tcp协议时参数&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 服务端绑定的端口 用户访问此端口的请求会被转发到 local_ip:local_port&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# remote_port = 8081&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [UDP] 当type为udp协议时参数&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 服务端绑定的端口 用户访问此端口的请求会被转发到 local_ip:local_port&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# remote_port = 8081&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [HTTP] 当type为http协议时参数&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# custom_domains 和 subdomain 必须要配置其中一个，两者可以同时生效。&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 服务器绑定自定义域名 和 subdomain 两者必须配置一个&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 用户通过 vhost_http_port 访问的 HTTP 请求如果 Host 在 custom_domains 配置的域名中，则会被路由到此代理配置的本地服务&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# custom_domains = test.baidu.com&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 自定义子域名 和 custom_domains 两者必须配置一个&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 和 custom_domains 作用相同，但是只需要指定子域名前缀，会结合服务端的 subdomain_host 生成最终绑定的域名&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# subdomain = test&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# URL 路由配置 采用最大前缀匹配的规则，用户请求匹配响应的 location 配置，则会被路由到此代理&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# locations = &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 用户名 如果配置此参数，暴露出去的 HTTP 服务需要采用 Basic Auth 的鉴权才能访问&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# http_user = user&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 密码 结合 http_user 使用&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# http_pwd = 123456&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 替换 Host header 替换发送到本地服务 HTTP 请求中的 Host 字段&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# host_header_rewrite&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 替换 header 此处值是map中的 key 是要替换的 header 的 key，value 是替换后的内容&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# headers&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [HTTPS] 当type为https协议时参数&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# custom_domains 和 subdomain 必须要配置其中一个，两者可以同时生效。&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 服务器绑定自定义域名 和 subdomain 两者必须配置一个&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 用户通过 vhost_http_port 访问的 HTTP 请求如果 Host 在 custom_domains 配置的域名中，则会被路由到此代理配置的本地服务&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# custom_domains = test.baidu.com&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 自定义子域名 和 custom_domains 两者必须配置一个&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 和 custom_domains 作用相同，但是只需要指定子域名前缀，会结合服务端的 subdomain_host 生成最终绑定的域名&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# subdomain = test&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [STCP] 当type为STCP协议时参数&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 角色 可选值 server,visitor server 表示服务端，visitor 表示访问端&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# role = sever&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 密钥 服务端和访问端的密钥需要一致，访问端才能访问到服务端&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# sk = &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [SUDP] 当type为SUDP协议时参数&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 角色 可选值 server,visitor server 表示服务端，visitor 表示访问端&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# role = sever&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 密钥 服务端和访问端的密钥需要一致，访问端才能访问到服务端&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# sk = &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 远程桌面配置 如果需要可以打开&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 角色 可选值 server,visitor server 表示服务端，visitor 表示访问端&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# role = sever&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 密钥 服务端和访问端的密钥需要一致，访问端才能访问到服务端&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# sk = &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 下方配置示例&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 远程桌面配置&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [RDP]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_ip = 0.0.0.0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_port = 3389&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# remote_port = 4389&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 多个TCP代理配置 例如本地需要代理多个端口 此处需要配置 同理也需要在服务端进行配置&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [range:tcp_port]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_ip = 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_port = 6010-6020,6022,6024-6028&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# remote_port = 6010-6020,6022,6024-6028&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_encryption = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_compression = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 转发dns请求&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [dns]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = udp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_ip = 114.114.114.114&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_port = 53&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# remote_port = 6002&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_encryption = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_compression = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 多个udp端口配置 先注释&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [range:udp_port]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = udp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_ip = 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_port = 6010-6020&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# remote_port = 6010-6020&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_encryption = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_compression = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 转发单个web配置 这里的web01是唯一的 需要增加可重新加&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [web01]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = http&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_ip = 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_port = 80&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_encryption = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_compression = true&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# http_user = admin&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# http_pwd = admin&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# subdomain = web01&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# custom_domains = web01.yourdomain.com&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# locations = /,/pic&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# host_header_rewrite = example.com&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# header_X-From-Where = frp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# health_check_type = http&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# health_check_url = /status&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# health_check_interval_s = 10&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# health_check_max_failed = 3&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# health_check_timeout_s = 3&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 此处可以设置第二个 代理规则 不需要 先注释&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [web02]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = https&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_ip = 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_port = 8000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_encryption = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_compression = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# subdomain = web01&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# custom_domains = web02.yourdomain.com&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# proxy_protocol_version = v2&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 这个示例通过配置 Unix域套接字客户端插件来通过 TCP 端口访问内网的 Unix域套接字服务 &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [plugin_unix_domain_socket]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# remote_port = 6003&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin = unix_domain_socket&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_unix_path = /var/run/docker.sock&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# HTTP 代理插件，用于将内网机器作为 HTTP 代理暴露给其他服务，可以通过此代理访问到此内网机器能够访问到的其他服务。&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [plugin_http_proxy]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# remote_port = 6004&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin = http_proxy&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_http_user = abc&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_http_passwd = abc&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# socks5插件配置示例 SOCKS5 代理&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [plugin_socks5]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# remote_port = 6005&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin = socks5&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_user = abc&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_passwd = abc&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 静态文件配置示例 静态文件浏览服务，通过暴露一个简单的 HTTP 服务查看指定的目录下的文件&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [plugin_static_file]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# remote_port = 6006&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin = static_file&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 要对外暴露的文件目录&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_local_path = /var/www/blog&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 用户请求的 URL 路径会被映射到本地文件，如果希望去除用户访问文件的前缀，需要配置此参数&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_strip_prefix = static&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# HTTP BasicAuth 用户名&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_http_user = abc&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# HTTP BasicAuth 密码&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_http_passwd = abc&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 通过 https2http 插件可以让本地 HTTP 服务转换成 HTTPS 服务对外提供&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [plugin_https2http]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = https&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# custom_domains = test.yourdomain.com&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin = https2http&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_local_addr = 127.0.0.1:80&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_crt_path = ./server.crt&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_key_path = ./server.key&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_host_header_rewrite = 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_header_X-From-Where = frp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 通过 https2https 插件可以让本地 HTTPS 服务转换成 HTTPS 服务对外提供&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [plugin_https2https]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = https&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# custom_domains = test.yourdomain.com&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin = https2https&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_local_addr = 127.0.0.1:443&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_crt_path = ./server.crt&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_key_path = ./server.key&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 如果配置，发送给本地服务的请求的 Host 字段会被修改&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_host_header_rewrite = 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 发送给本地服务的请求会被加上指定的 header 字段 plugin_header_{header name}&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# plugin_header_X-From-Where = frp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 加密tcp代理 不需要 注释&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [secret_tcp]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# If the type is secret tcp, remote_port is useless&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# Who want to connect local port should deploy another frpc with stcp proxy and role is visitor&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = stcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# sk used for authentication for visitors&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# sk = abcdefg&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_ip = 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_port = 22&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_encryption = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_compression = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [secret_tcp_visitor]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# frpc role visitor -&amp;gt; frps -&amp;gt; frpc role server&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# role = visitor&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = stcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# server_name = secret_tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# sk = abcdefg&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# bind_addr = 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# bind_port = 9000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_encryption = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_compression = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [p2p_tcp]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = xtcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# sk = abcdefg&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_ip = 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_port = 22&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_encryption = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_compression = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [p2p_tcp_visitor]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# role = visitor&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = xtcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# server_name = p2p_tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# sk = abcdefg&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# bind_addr = 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# bind_port = 9001&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_encryption = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# use_compression = false&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# [tcpmuxhttpconnect]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# type = tcpmux&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# multiplexer = httpconnect&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_ip = 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# local_port = 10701&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# custom_domains = tunnel1&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif; orphans: 4; white-space: pre-wrap;&quot;&gt;上面配置是官方提供的全部配置说明 &amp;nbsp;需要修改地方修改完成之后 启动 访问你的服务端IP加端口可以正常访问服务 亲测可用&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 cid=&quot;n301&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;服务端主要修改内容参考 &lt;/span&gt;&lt;/h3&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n305&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //绑定可访问地址&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//TCP绑定端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_udp_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//UDP绑定端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;kcp_bind_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//KCP绑定端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;vhost_http_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8090 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//HTTP代理端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;vhost_https_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 443 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//HTTPS代理端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//仪表盘可访问地址&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7500 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //仪表盘端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_user &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//仪表盘用户名&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_pwd &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //仪表盘密码&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//连接密码&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;subdomain_host &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; test.com &amp;nbsp; &amp;nbsp; &amp;nbsp; //子域名使用的主机名&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h3 cid=&quot;n274&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;客户端主要修改内容参考 &lt;/span&gt;&lt;/h3&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n311&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 172.16.100.100 &amp;nbsp; &amp;nbsp;//服务器地址&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//服务器绑定端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//特权模式密码&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;tls_enable &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; true &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //加密传输 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 127.0.0.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//客户端Web地址&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7400 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Web访问端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_user &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Web访问账户&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_pwd &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Web访问密码&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;user &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; your_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//用户名，设置后代理将显示为 &amp;lt;用户名.代理名&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[web]&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //服务名称（自定义）&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_ip &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 127.0.0.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//局域网IP地址&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;type &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; http &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //链接类型&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8080 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //本机端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;subdomain &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; web &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //服务端为test.com,故此处子域名为web.test.com&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;custom_domains &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; demo.com &amp;nbsp; &amp;nbsp; &amp;nbsp; //自定义访问域名，多个使用,分割&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;use_compression &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; true &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//使用压缩&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;use_encryption &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; true &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //使用加密&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[ssh]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_ip &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;type &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 22&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;remote_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 9000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;use_compression &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; true&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;use_encryption &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; true&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n308&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;根据上方参数可进行大部分配置&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n327&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;官方中文文档：&lt;/span&gt;&lt;span md-inline=&quot;url&quot; class=&quot;md-link md-pair-s&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;a href=&quot;https://gofrp.org/docs/&quot; style=&quot;box-sizing: border-box;cursor: pointer;color: rgb(65, 131, 196);-webkit-user-drag: none&quot;&gt;https://gofrp.org/docs/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n314&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;如果我们需要使用可根据自己需求在下方快速配置&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n352&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;配置文件中 1.2.3.4需要修改成你自己的服务器IP&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n22&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;1.远程办公配置&lt;/span&gt;&lt;/h3&gt;&lt;h4 cid=&quot;n27&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.4;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;服务端配置&lt;/span&gt;&lt;/h4&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n333&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;log_file &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; ./frps.log&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h4 cid=&quot;n277&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.4;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;客户端配置&lt;/span&gt;&lt;/h4&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n336&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 1.2.3.4&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[RDP]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;type &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_ip &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 3389&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;remote_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 6000&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h3 cid=&quot;n25&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2.远程调用本地服务&lt;/span&gt;&lt;/h3&gt;&lt;h4 cid=&quot;n346&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.4;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;服务端配置&lt;/span&gt;&lt;/h4&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n347&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;log_file &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; ./frps.log&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;vhost_http_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8090&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;vhost_https_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 443&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h4 cid=&quot;n348&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.4;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;客户端配置&lt;/span&gt;&lt;/h4&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n349&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 1.2.3.4&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[web]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;type &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; http&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;#本地服务端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8080 &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;custom_domains &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 1.2.3.4&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h3 cid=&quot;n339&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;3.管理面板配置&lt;/span&gt;&lt;/h3&gt;&lt;h4 cid=&quot;n355&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.4;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;服务端配置&lt;/span&gt;&lt;/h4&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n359&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;log_file &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; ./frps.log&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;vhost_http_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8090&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;vhost_https_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 443&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span cm-text=&quot;&quot; cm-zwsp=&quot;&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;enable_prometheus &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; true&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 管理面板端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7500&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_user &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_pwd &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n360&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;访问地址 &lt;/span&gt;&lt;span md-inline=&quot;url&quot; class=&quot;md-link md-pair-s&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;a href=&quot;http://1.2.3.4:7500&quot; style=&quot;box-sizing: border-box;cursor: pointer;color: rgb(65, 131, 196);-webkit-user-drag: none&quot;&gt;http://1.2.3.4:7500&lt;/a&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt; 账号密码 admin/admin&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n365&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;服务端管理界面截图&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n367&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/11/202111221844016977819.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;h4 cid=&quot;n357&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.4;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;客户端配置&lt;/span&gt;&lt;/h4&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n362&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 1.2.3.4&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 客户端管理地址和端口配置&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7400&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_user &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_pwd &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[web]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;type &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; http&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;#本地服务端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8080 &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;custom_domains &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 1.2.3.4&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n363&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;访问地址 &lt;/span&gt;&lt;span md-inline=&quot;url&quot; class=&quot;md-link md-pair-s&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;a href=&quot;http://127.0.0.1:7400&quot; style=&quot;box-sizing: border-box;cursor: pointer;color: rgb(65, 131, 196);-webkit-user-drag: none&quot;&gt;http://127.0.0.1:7400&lt;/a&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt; 账号密码 admin/admin&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n369&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;截图&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n371&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20211122172058430.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 684px&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/11/202111221843362995111.png&quot; alt=&quot;image.png&quot; style=&quot;color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif; orphans: 4; white-space: pre-wrap;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n373&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;4.多端口代理本地多端口&lt;/span&gt;&lt;/h3&gt;&lt;h4 cid=&quot;n375&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.4;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;服务端配置&lt;/span&gt;&lt;/h4&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n382&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;log_file &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; ./frps.log&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h4 cid=&quot;n378&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.4;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;客户端配置&lt;/span&gt;&lt;/h4&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n385&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 1.2.3.4&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[range:tcp_port]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;type &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_ip &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8080-8090&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;remote_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8080-8090&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n386&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;服务端对应的 &lt;/span&gt;&lt;span md-inline=&quot;url&quot; class=&quot;md-link md-pair-s&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;a href=&quot;http://1.2.3.4:8080&quot; style=&quot;box-sizing: border-box;cursor: pointer;color: rgb(65, 131, 196);-webkit-user-drag: none&quot;&gt;http://1.2.3.4:8080&lt;/a&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt; 对应本地 &lt;/span&gt;&lt;span md-inline=&quot;url&quot; class=&quot;md-link md-pair-s&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;a href=&quot;http://127.0.0.1:8080&quot; style=&quot;box-sizing: border-box;cursor: pointer;color: rgb(65, 131, 196);-webkit-user-drag: none&quot;&gt;http://127.0.0.1:8080&lt;/a&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt; &amp;nbsp;8081-&amp;gt;8081 以此类推&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n389&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;整合以上配置&lt;/span&gt;&lt;/h3&gt;&lt;h4 cid=&quot;n391&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.4;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;服务端配置&lt;/span&gt;&lt;/h4&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n395&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;bind_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;log_file &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; ./frps.log&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 代理服务配置HTTP端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;vhost_http_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8090&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;vhost_https_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 443&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 管理面板配置&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;enable_prometheus &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; true&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7500&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_user &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;dashboard_pwd &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h4 cid=&quot;n392&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.4;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;客户端配置&lt;/span&gt;&lt;/h4&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n398&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[common]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 1.2.3.4&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;server_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;token &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 123456&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;# 客户端管理地址和端口配置&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_addr &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 7400&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_user &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;admin_pwd &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; admin&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[RDP]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;type &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_ip &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 0.0.0.0&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 3389&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;remote_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 6000&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[web]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;type &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; http&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;#本地服务端口&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8080 &lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;custom_domains &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 1.2.3.4&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;font-weight: 700;color: #0000FF&quot;&gt;[range:tcp_port]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;type &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; tcp&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_ip &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;local_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8080-8090,8092,8095-8099&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;remote_port &lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #009900&quot;&gt; 8080-8090,8092,8095-8099&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;md-end-block md-p&quot; mdtype=&quot;paragraph&quot; cid=&quot;n317&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;不需要功能对应注释即可&lt;/span&gt;&lt;/p&gt;&lt;h2 cid=&quot;n401&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;高级玩法&lt;/span&gt;&lt;/h2&gt;&lt;h3 cid=&quot;n319&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 cid=&quot;n104&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;1.后台运行&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n105&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;服务端启动&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n106&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;nohup&amp;nbsp;./frps&amp;nbsp;-c&amp;nbsp;./frps.ini&amp;nbsp;&amp;amp;&lt;/pre&gt;&lt;p cid=&quot;n107&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;客户端启动&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n108&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;创建 frps.vbs脚本&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n109&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;Set ws &lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt; CreateObject(&lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;Wscript.Shell&amp;quot;&lt;/span&gt;) &lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; ws.run &lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;cmd /c D:\Tools\Frp\frpc.exe -c D:\Tools\Frp\frpc.ini&amp;quot;&lt;/span&gt;,vbhide&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n110&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;然后把vbs放到启动目录即可实现开机启动&lt;/span&gt;&lt;/p&gt;&lt;blockquote cid=&quot;n111&quot; mdtype=&quot;blockquote&quot; style=&quot;box-sizing: border-box;margin: 0.8em 0px;border-left: 4px solid rgb(223, 226, 229);padding: 0px 15px;color: rgb(119, 119, 119);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;white-space: normal&quot;&gt;&lt;p cid=&quot;n112&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0px;margin-bottom: 0px;white-space: pre-wrap;position: relative&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p cid=&quot;n113&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;这个缺点是电脑需要登录才能启动 所以一般不使用此方法自启动&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n319&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 cid=&quot;n114&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;2.写入服务&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n115&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;strong style=&quot;box-sizing: border-box&quot;&gt;服务端&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n116&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;将frp设置成linux系统的服务，基于systemd方式管理 编写frps.service文件，&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n117&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;以centos7为例：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n118&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;vim&amp;nbsp;/lib/systemd/system/frp.service&lt;/pre&gt;&lt;p cid=&quot;n119&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;内容如下：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n120&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;[Unit]&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;Description&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt;frpServer&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;After&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt;network.target&lt;/span&gt;&lt;br/&gt; &lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;[Service]&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt;simple&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;ExecStart&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt;/www/server/frp/frps &lt;span style=&quot;box-sizing: border-box;color: #0000CC&quot;&gt;-c&lt;/span&gt; /www/server/frp/frps.ini&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;ExecReload&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt;/www/server/frp/frps reload &lt;span style=&quot;box-sizing: border-box;color: #0000CC&quot;&gt;-c&lt;/span&gt; /www/server/frp/frps.ini&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;KillSignal&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt;SIGQUIT&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;TimeoutStopSec&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #116644&quot;&gt;5&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;KillMode&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt;process&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;PrivateTmp&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #221199&quot;&gt;true&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;StandardOutput&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt;syslog&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;StandardError&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt;inherit&lt;/span&gt;&lt;br/&gt; &lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;[Install]&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span style=&quot;box-sizing: border-box;color: #0000FF&quot;&gt;WantedBy&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #981A1A&quot;&gt;=&lt;/span&gt;multi-user.target&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n121&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;说明 &lt;/span&gt;&lt;span md-inline=&quot;code&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;code style=&quot;box-sizing: border-box;font-family: var(--monospace);vertical-align: initial;border: 1px solid rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em&quot;&gt;ExecStart=/www/server/frp/frps&lt;/code&gt;&lt;/span&gt; &lt;span md-inline=&quot;code&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;code style=&quot;box-sizing: border-box;font-family: var(--monospace);vertical-align: initial;border: 1px solid rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em&quot;&gt;/www/server/frp/frps&lt;/code&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;是你的服务端所在的路径&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n122&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;strong style=&quot;box-sizing: border-box&quot;&gt;客户端&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n123&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;使用&lt;/span&gt;&lt;span md-inline=&quot;url&quot; class=&quot;md-link md-pair-s&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;a href=&quot;https://github.com/winsw/winsw&quot; style=&quot;box-sizing: border-box;cursor: pointer;color: rgb(65, 131, 196);-webkit-user-drag: none&quot;&gt;https://github.com/winsw/winsw&lt;/a&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt; 写入服务&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n124&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;在 &lt;/span&gt;&lt;span md-inline=&quot;url&quot; class=&quot;md-link md-pair-s&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;a href=&quot;https://github.com/winsw/winsw/releases&quot; style=&quot;box-sizing: border-box;cursor: pointer;color: rgb(65, 131, 196);-webkit-user-drag: none&quot;&gt;https://github.com/winsw/winsw/releases&lt;/a&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt; 下载对应版本&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n125&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;修改WinSW-x64.exe为你想要的名称 例如winSW.exe&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n126&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;创建同名.xml文件 例如 winSW.xml&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n127&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;service&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;&amp;lt;!-- 该服务的唯一标识 --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;frp&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;&amp;lt;!-- 该服务的名称 --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;frp0.38.0-windows&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;&amp;lt;!-- 该服务的描述 --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;description&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;frpc客户端 这个服务用 frpc 实现内网穿透&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;description&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;&amp;lt;!-- 要运行的程序路径 --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;executable&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;D:\Tools\Frp\frpc.exe&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;executable&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;&amp;lt;!-- 携带的参数 --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;arguments&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;-c D:\Tools\Frp\frpc.ini&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;arguments&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;&amp;lt;!-- 第一次启动失败 60秒重启 --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;onfailure&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box;color: #0000CC&quot;&gt;action&lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;restart&amp;quot;&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box;color: #0000CC&quot;&gt;delay&lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;60 sec&amp;quot;&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;&amp;lt;!-- 第二次启动失败 120秒后重启 --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;onfailure&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box;color: #0000CC&quot;&gt;action&lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;restart&amp;quot;&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box;color: #0000CC&quot;&gt;delay&lt;/span&gt;=&lt;span style=&quot;box-sizing: border-box;color: #AA1111&quot;&gt;&amp;quot;120 sec&amp;quot;&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;&amp;lt;!-- 日志模式 none是关闭日志 --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;logmode&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;none&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;logmode&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;box-sizing: border-box;color: #AA5500&quot;&gt;&amp;lt;!-- 指定日志文件目录(相对于executable配置的路径) --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;logpath&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;logs&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;logpath&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;color: #117700&quot;&gt;service&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box;color: #117700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n128&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;运行cmd&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n129&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;//注册服务&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;winSW.exe install&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;//卸载服务&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;winSW.exe uninstall&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;//启动服务&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;winSW.exe &lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;start&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;//停止服务&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;winSW.exe &lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;stop&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;//重启服务&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;winSW.exe &lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;restart&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;//查看状态&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;winSW.exe status&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n130&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;注册服务时如果被某60拦截了需要点允许&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n131&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;如果提示：FATAL - WMI Operation failure: AccessDenied 则需要以管理员方式运行CMD再试&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n132&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;3.开机自启&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n133&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;strong style=&quot;box-sizing: border-box&quot;&gt;服务端&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n134&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;执行写入服务之后执行&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; cid=&quot;n135&quot; mdtype=&quot;fences&quot; style=&quot;box-sizing: border-box;overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border: 1px solid rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);position: relative !important&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;systemctl daemon-reload&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;systemctl enable frp.service&lt;/span&gt;&lt;br/&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box;padding-right: 0.1px&quot;&gt;systemctl &lt;span style=&quot;box-sizing: border-box;color: #3300AA&quot;&gt;start&lt;/span&gt; frp.service&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n136&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p md-focus&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;strong&quot; class=&quot;md-pair-s &quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;strong style=&quot;box-sizing: border-box&quot;&gt;客户端&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n133&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/11/202111231042074801484.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p cid=&quot;n134&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;上述生成的服务设置为自动启动即可&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n135&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/11/202111231042205031169.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p cid=&quot;n135&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span md-inline=&quot;image&quot; data-src=&quot;assets/image-20211123095826456.png&quot; class=&quot;md-image md-img-loaded&quot; style=&quot;box-sizing: border-box;min-width: 10px;min-height: 10px;position: relative;font-family: monospace;vertical-align: top;display: inline-block;width: 696.4px&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n409&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;position: relative;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/h3&gt;&lt;p cid=&quot;n450&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n450&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n450&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-p&quot; style=&quot;box-sizing: border-box;line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;position: relative;color: rgb(51, 51, 51);font-family: &amp;#39;Open Sans&amp;#39;, &amp;#39;Clear Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px;&quot;&gt;&lt;img style=&quot;vertical-align: middle; margin-right: 2px;&quot; src=&quot;https://www.mpzdsw.cn/zb_users/plugin/Neditor/dialogs/attachment/fileTypeImages/icon_rar.gif&quot;/&gt;&lt;a style=&quot;font-size:12px; color:#0066cc;&quot; href=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/11/202111221846122832861.gz&quot; title=&quot;frp_0.38.0_linux_386.tar.gz&quot;&gt;frp_0.38.0_linux_386.tar.gz&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px;&quot;&gt;&lt;img style=&quot;vertical-align: middle; margin-right: 2px;&quot; src=&quot;https://www.mpzdsw.cn/zb_users/plugin/Neditor/dialogs/attachment/fileTypeImages/icon_rar.gif&quot;/&gt;&lt;a style=&quot;font-size:12px; color:#0066cc;&quot; href=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/11/202111221846127800687.zip&quot; title=&quot;frp_0.38.0_windows_386.zip&quot;&gt;frp_0.38.0_windows_386.zip&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px;&quot;&gt;&lt;img style=&quot;vertical-align: middle; margin-right: 2px;&quot; src=&quot;https://www.mpzdsw.cn/zb_users/plugin/Neditor/dialogs/attachment/fileTypeImages/icon_rar.gif&quot;/&gt;&lt;a style=&quot;font-size:12px; color:#0066cc;&quot; href=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/11/202111231044582908182.zip&quot; title=&quot;WinSW.zip&quot;&gt;WinSW.zip&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px;&quot;&gt;&lt;img style=&quot;vertical-align: middle; margin-right: 2px;&quot; src=&quot;https://www.mpzdsw.cn/zb_users/plugin/Neditor/dialogs/attachment/fileTypeImages/icon_rar.gif&quot;/&gt;&lt;a style=&quot;font-size:12px; color:#0066cc;&quot; href=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/11/202111231114368815113.zip&quot; title=&quot;简单配置.zip&quot;&gt;简单配置.zip&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px;&quot;&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 22 Nov 2021 18:41:40 +0800</pubDate></item><item><title>nginx配置中alias和root的区别</title><link>https://www.mpzdsw.cn/?id=88</link><description>&lt;p&gt;nginx中的alias和root用法和区别&lt;br/&gt;&lt;/p&gt;&lt;p&gt;http://nginx.org/en/docs/http/ngx_http_core_module.html#alias&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;a href=&quot;http://nginx.org/en/docs/http/ngx_http_core_module.html#root&quot; _src=&quot;http://nginx.org/en/docs/http/ngx_http_core_module.html#root&quot;&gt;http://nginx.org/en/docs/http/ngx_http_core_module.html#root&lt;/a&gt;&lt;div&gt;&lt;br/&gt; &lt;p&gt;在一次二级目录代理一直报错404后研究了下root和alias的区别&amp;nbsp;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;先看看root的用法&lt;/p&gt;&lt;pre class=&quot;brush:xml;toolbar:false&quot;&gt;location&amp;nbsp;/admin/image/&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;root&amp;nbsp;/local_admin/image/;
}&lt;/pre&gt;&lt;p&gt;这样配置当客户端请求&lt;/p&gt;&lt;p&gt;/admin/image/1.png时&lt;/p&gt;&lt;p&gt;nginx把请求映射为&lt;/p&gt;&lt;p&gt;/local_admin/image/admin/image/1.png&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;white-space: normal;&quot;&gt;再看看alias的用法&lt;/p&gt;&lt;pre class=&quot;brush:xml;toolbar:false&quot;&gt;location&amp;nbsp;/admin/image/&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alias&amp;nbsp;/local_admin/image/;
}&lt;/pre&gt;&lt;p style=&quot;white-space: normal;&quot;&gt;这时候当客户端请求&lt;/p&gt;&lt;p style=&quot;white-space: normal;&quot;&gt;/admin/image/1.png时&lt;/p&gt;&lt;p style=&quot;white-space: normal;&quot;&gt;nginx把请求映射为&lt;/p&gt;&lt;p style=&quot;white-space: normal;&quot;&gt;/local_admin/image/1.png&lt;/p&gt;&lt;p style=&quot;white-space: normal;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;white-space: normal;&quot;&gt;所以当项目放在二级目录下时&lt;/p&gt;&lt;p style=&quot;white-space: normal;&quot;&gt;可能会出现404错误 有时候使用alias会是更好的选择&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/div&gt;</description><pubDate>Sun, 12 Sep 2021 22:34:58 +0800</pubDate></item><item><title>Linux 命令提示符显示当前完整路径</title><link>https://www.mpzdsw.cn/?id=74</link><description>&lt;p&gt;前言&lt;/p&gt;&lt;p&gt;操作Linux服务其时，所在的目录显示是这样的&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/08/202108260939478532838.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;如果需要查看当前目录需要输入pwd命令&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/08/202108260940518122718.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;那么我们怎么设置直接显示全部路径呢&lt;/p&gt;&lt;p&gt;使用root用户&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;brush:bash;toolbar:false&quot;&gt;vim&amp;nbsp;/etc/profile&lt;/pre&gt;&lt;p&gt;然后在尾部添加&lt;/p&gt;&lt;pre class=&quot;brush:bash;toolbar:false&quot;&gt;export&amp;nbsp;PS1=&amp;#39;[\u@\h&amp;nbsp;$PWD]#&amp;nbsp;&amp;#39;&lt;/pre&gt;&lt;p&gt;然后保存(vim 退出保存：esc :wq )&lt;br/&gt;&lt;/p&gt;&lt;p&gt;最后执行&lt;/p&gt;&lt;pre class=&quot;brush:bash;toolbar:false&quot;&gt;source&amp;nbsp;/etc/profile&lt;/pre&gt;&lt;p&gt;使配置生效&lt;br/&gt;&lt;/p&gt;&lt;p&gt;效果&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/08/202108260949284329331.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;</description><pubDate>Thu, 26 Aug 2021 09:30:41 +0800</pubDate></item><item><title>Linux设置秘钥登录，不允许root密码登录</title><link>https://www.mpzdsw.cn/?id=73</link><description>&lt;p&gt;需求&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/08/202108161128577169633.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;记录一下&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h1 label=&quot;标题居左&quot; style=&quot;font-size: 32px; font-weight: bold; border-bottom: 2px solid rgb(204, 204, 204); padding: 0px 4px 0px 0px; text-align: left; margin: 0px 0px 10px;&quot;&gt;一、生成密钥&lt;/h1&gt;&lt;p&gt;win+r运行cmd 生成公钥和密钥&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;brush:cpp;toolbar:false&quot;&gt;ssh-keygen&amp;nbsp;-t&amp;nbsp;rsa&lt;/pre&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/08/202108161132345458111.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;可以看到保存目录，然后回车三次生成文件，生成文件如下&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/08/202108161133343934568.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;h1 label=&quot;标题居左&quot; style=&quot;font-size: 32px; font-weight: bold; border-bottom: 2px solid rgb(204, 204, 204); padding: 0px 4px 0px 0px; text-align: left; margin: 0px 0px 10px;&quot;&gt;二、设置公钥&lt;/h1&gt;&lt;p&gt;进入linux服务器设置公钥和修改登录方式&lt;/p&gt;&lt;p&gt;执行命令&lt;/p&gt;&lt;pre class=&quot;brush:bash;toolbar:false&quot;&gt;cd&amp;nbsp;/root/.ssh&lt;/pre&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/08/202108161138518750548.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;查看文件然后编辑&lt;/p&gt;&lt;pre class=&quot;brush:bash;toolbar:false&quot;&gt;ll
vim&amp;nbsp;authorized_keys&lt;/pre&gt;&lt;p&gt;原本如果有内容，全部删除，将本地文件id_rsa.pub内容粘贴进去并保存&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/08/202108161141235165503.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;退出并保存命令esc :wq&lt;br/&gt;&lt;/p&gt;&lt;p&gt;接下来设置sshd_config文件&lt;/p&gt;&lt;pre class=&quot;brush:bash;toolbar:false&quot;&gt;find&amp;nbsp;/&amp;nbsp;-name&amp;nbsp;sshd_config
vim&amp;nbsp;/etc/ssh/sshd_config&lt;/pre&gt;&lt;p&gt;修改或新增：&lt;/p&gt;&lt;p&gt;PasswordAuthentication no&lt;/p&gt;&lt;p&gt;PubkeyAuthentication yes&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/08/202108161143278005995.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;然后重启sshd服务&lt;/p&gt;&lt;pre class=&quot;brush:bash;toolbar:false&quot;&gt;service&amp;nbsp;sshd&amp;nbsp;restart&lt;/pre&gt;&lt;p&gt;最后测试连接&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/08/202108161145377951637.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;导入刚才生成密钥&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/08/202108161146159969404.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;然后选择&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://www.mpzdsw.cn/zb_users/upload/2021/08/202108161147255957918.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;连接成功 大功告成！&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 16 Aug 2021 11:24:33 +0800</pubDate></item></channel></rss><!--40.85 ms , 6 query , 2864kb memory , 0 error-->