nezhahq.github.io/assets/guide_servers.md.GZTaFaTA.js

34 lines
12 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as s,c as a,o as n,a4 as i}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"服务器","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"guide/servers.md","filePath":"guide/servers.md","lastUpdated":1729393219000}'),t={name:"guide/servers.md"},e=i(`<h1 id="服务器" tabindex="-1">服务器 <a class="header-anchor" href="#服务器" aria-label="Permalink to &quot;服务器&quot;"></a></h1><h2 id="介绍" tabindex="-1">介绍 <a class="header-anchor" href="#介绍" aria-label="Permalink to &quot;介绍&quot;"></a></h2><p>服务器区域负责管理 Agent是哪吒探针中最基础的区域也是其他功能的基础。</p><h2 id="新增服务器" tabindex="-1">新增服务器 <a class="header-anchor" href="#新增服务器" aria-label="Permalink to &quot;新增服务器&quot;"></a></h2><p>第一步是新增服务器,可以自定义名称、分组、排序和备注。<br> 拥有相同分组的服务器会在受支持的主题中划分到一起进行显示,备注仅会在后台显示,无需担心泄露信息。</p><h2 id="安装-agent" tabindex="-1">安装 Agent <a class="header-anchor" href="#安装-agent" aria-label="Permalink to &quot;安装 Agent&quot;"></a></h2><p>请参考前文<a href="/guide/agent.html">安装 Agent</a>。<br> 推荐使用一键安装,即<strong>配置好参数后</strong>,点击服务器<strong>一键安装</strong>列上的对应的系统图标即可复制安装命令,在相应服务器上进行安装。</p><h2 id="强制更新" tabindex="-1">强制更新 <a class="header-anchor" href="#强制更新" aria-label="Permalink to &quot;强制更新&quot;"></a></h2><p>Agent 更新相关的参数是 <a href="/guide/q7.html">自定义 Agent 监控项目</a> 中的 <code>--disable-auto-update</code> 和 <code>--disable-force-update</code>。<br> 默认情况下Agent 会自动更新,无需干预。但当用户关闭自动更新后,也可以选中指定服务器进行强制更新。<br><code>disable-force-update</code> 开启时此功能不生效。</p><h2 id="数据列" tabindex="-1">数据列 <a class="header-anchor" href="#数据列" aria-label="Permalink to &quot;数据列&quot;"></a></h2><ul><li>版本号:记录 Agent 当前版本。</li><li>对游客隐藏:为 True 时,游客在面板中无法查看到此服务器。</li><li>启用 DDNS为 True 时,当该服务器 IP 发生变化Dashboard 会自动更新 DNS 记录。</li><li>DDNS 域名:为该服务器配置的 DDNS 域名。</li><li>密钥:即 secret/key配置 Agent 时会用到,用于验证 Agent 与 Dashboard 的通信。</li><li>一键安装:点击相应的系统按钮,复制命令到服务器执行即可一键安装。</li><li>备注:服务器备注,仅验证后可见。</li><li>公开备注:服务器公开备注,前台可见。可以根据此字段做一些自定义,具体见<a href="#公开备注示例">公开备注示例</a>。</li><li>管理:分别为连接 WebShell修改服务器配置删除服务器。</li></ul><h2 id="在线终端" tabindex="-1">在线终端 <a class="header-anchor" href="#在线终端" aria-label="Permalink to &quot;在线终端&quot;"></a></h2><p>即 WebShell<code>disable-command-execute</code> 开启时此功能不生效。<br> Linux 和 Windows 均可用,可使用 Ctrl+Shift+V 粘贴。<br> 连接失败请参考<a href="/guide/q4.html">实时通道断开/在线终端连接失败</a>。</p><h2 id="fm" tabindex="-1">FM <a class="header-anchor" href="#fm" aria-label="Permalink to &quot;FM&quot;"></a></h2><p>Dashboard v0.19.1 / Agent v0.19.0 加入的新功能,是嵌入 WebShell 的一个伪文件管理器,提供文件下载和上传功能,也可以进行目录跳转或者复制路径。点击 WebShell 右下角的蓝色按钮就可以打开。</p><h2 id="公开备注示例" tabindex="-1">公开备注示例 <a class="header-anchor" href="#公开备注示例" aria-label="Permalink to &quot;公开备注示例&quot;"></a></h2><h3 id="serverstatus主题agent账单信息展示" tabindex="-1">ServerStatus主题agent账单信息展示 <a class="header-anchor" href="#serverstatus主题agent账单信息展示" aria-label="Permalink to &quot;ServerStatus主题agent账单信息展示&quot;"></a></h3><details><summary>点击展开/收起</summary><p><strong>配置位置:后台-&gt; 服务器 -&gt; 编辑服务器 -&gt; 公开备注</strong></p><p><strong>完整配置,包含过期时间和价格展示</strong></p><div class="language-json vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">json</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;billingDataMod&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: {</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;startDate&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;2024-10-01T00:00:00+08:00&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;endDate&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;2024-11-01T00:00:00+08:00&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;autoRenewal&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;1&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;cycle&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;月&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;amount&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;$3.99&quot;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p><strong>单独配置过期时间</strong></p><div class="language-json vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">json</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;billingDataMod&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: {</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;startDate&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;2024-10-01T00:00:00+08:00&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;endDate&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;2024-11-01T00:00:00+08:00&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;autoRenewal&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;1&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;cycle&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;月&quot;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p><strong>配置详细说明:</strong></p><p><strong>startDate 账单开始时间</strong></p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>格式如 2022-04-01T23:59:59+08:00</span></span></code></pre></div><p><strong>endDate 账单到期时间</strong></p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>格式如 2022-05-01T23:59:59+08:00</span></span>
<span class="line"><span>当以0000-00-00开头时表示账单无期限适用于永久免费的vps如0000-00-00T23:59:59+08:00</span></span></code></pre></div><p><strong>Date格式说明</strong></p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>分3部分</span></span>
<span class="line"><span>1. 日期2022-04-01</span></span>
<span class="line"><span>2. 时间T23:59:59</span></span>
<span class="line"><span>3. 时区:+08:00</span></span>
<span class="line"><span>例如:</span></span>
<span class="line"><span>2024-10-01T23:59:59+05:00</span></span>
<span class="line"><span>2024-09-21T12:00:00-05:00</span></span>
<span class="line"><span>2024-03-15T23:59:59+00:00</span></span></code></pre></div><p><strong>autoRenewal 自动续期</strong></p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>支持值</span></span>
<span class="line"><span>1自动续期</span></span>
<span class="line"><span>0不自动续期</span></span>
<span class="line"><span>当设置 &quot;autoRenewal&quot;: 1 时程序会根据当前时间自动判断vps账单到期后无需手动更改startDate和endDate</span></span></code></pre></div><p><strong>amount 价格</strong></p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>格式如 $9.99 、€19.92 、¥199、19.99HKD、9.99USD、49.99CNY</span></span>
<span class="line"><span>如果vps是免费的请设置为&quot;0&quot; , 如 &quot;amount&quot;: &quot;0&quot;, 前台展示为 FREE</span></span>
<span class="line"><span>如果vps是按量收费请设置为&quot;-1&quot; , 如 &quot;amount&quot;: &quot;-1&quot;, 前台展示为PAYG</span></span></code></pre></div><p><strong>cycle 付费周期</strong></p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>支持格式(英文大小写字母都支持,大小写字母混用也支持)</span></span>
<span class="line"><span>1. 月、month、monthly、m、mo</span></span>
<span class="line"><span>2. 季、quarterly、q</span></span>
<span class="line"><span>3. 半年、半、half、semi-annually、h</span></span>
<span class="line"><span>4. 年、year、annually、y、yr</span></span></code></pre></div></details>`,18),l=[e];function p(h,o,r,d,k,c){return n(),a("div",null,l)}const E=s(t,[["render",p]]);export{g as __pageData,E as default};