This commit is contained in:
uubulb committed 2024-11-25 07:59:16 +00:00
1 parent a1c0bc58e8
commit 49948393a2
219 files changed
+351 -351

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@
<link rel="preload" href="/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="modulepreload" href="/assets/chunks/framework.BmdFiWrL.js">
<link rel="modulepreload" href="/assets/chunks/theme.D1TJKLdg.js">
<link rel="modulepreload" href="/assets/guide_agent.md.BuczWAdN.lean.js">
<link rel="modulepreload" href="/assets/guide_agent.md.D5fn7vFK.lean.js">
<script src="https://cdn.wwads.cn/js/makemoney.js" async></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FDME8GJGTW"></script>
<script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag("js",new Date),gtag("config","G-FDME8GJGTW");</script>
@@ -88,8 +88,8 @@
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> stop</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> sleep</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> start</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><ul><li>运行 <code>chmod +x /etc/init.d/nezha-service</code> 赋予执行权限。</li><li>启动服务: <code>/etc/init.d/nezha-service enable &amp;&amp; /etc/init.d/nezha-service start</code></li></ul></details><h2 id="agent-有-docker-镜像吗" tabindex="-1">Agent 有 Docker 镜像吗? <a class="header-anchor" href="#agent-有-docker-镜像吗" aria-label="Permalink to &quot;Agent 有 Docker 镜像吗?&quot;">​</a></h2><p><strong>Agent 目前没有推出 Docker 镜像。</strong><br> Agent 的设计思路和 Dashboard 相反,Dashboard 要尽可能不影响宿主机工作,但 Agent 则需要在宿主机中执行监控服务和运行命令。<br> 将 Agent 放入容器中确实可以继续执行监控任务,但 WebShell 等功能无法正常运行,因此不提供 Docker 镜像。</p></div></div></main><footer class="VPDocFooter" data-v-39a288b8 data-v-d4a0bba5><!--[--><!--]--><div class="edit-info" data-v-d4a0bba5><div class="edit-link" data-v-d4a0bba5><a class="VPLink link vp-external-link-icon no-icon edit-link-button" href="https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/guide/agent.md" target="_blank" rel="noreferrer" data-v-d4a0bba5><!--[--><span class="vpi-square-pen edit-link-icon" data-v-d4a0bba5></span> 在GitHub中编辑<!--]--></a></div><div class="last-updated" data-v-d4a0bba5><p class="VPLastUpdated" data-v-d4a0bba5 data-v-7e05ebdb>上次更新: <time datetime="2024-11-18T07:44:31.000Z" data-v-7e05ebdb></time></p></div></div><nav class="prev-next" aria-labelledby="doc-footer-aria-label" data-v-d4a0bba5><span class="visually-hidden" id="doc-footer-aria-label" data-v-d4a0bba5>Pager</span><div class="pager" data-v-d4a0bba5><a class="VPLink link pager-link prev" href="/guide/dashboard.html" data-v-d4a0bba5><!--[--><span class="desc" data-v-d4a0bba5>Previous page</span><span class="title" data-v-d4a0bba5>安装 Dashboard</span><!--]--></a></div><div class="pager" data-v-d4a0bba5><a class="VPLink link pager-link next" href="/guide/servers.html" data-v-d4a0bba5><!--[--><span class="desc" data-v-d4a0bba5>Next page</span><span class="title" data-v-d4a0bba5>服务器</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-5d98c3a5 data-v-e315a0ad><div class="container" data-v-e315a0ad><p class="message" data-v-e315a0ad>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License</p><p class="copyright" data-v-e315a0ad>Copyright © 2022-present NezhaHQ</p></div></footer><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"en_us_case_case3.md\":\"Bh26AfQL\",\"en_us_case_case6.md\":\"CfPxdNbX\",\"en_us_index.md\":\"DgG-1X1y\",\"guide_ddns.md\":\"L9G4iMs-\",\"en_us_case_case2.md\":\"BmBkr7R2\",\"case_index.md\":\"CEpRLiHO\",\"case_case4.md\":\"BIVxmOuD\",\"guide_q4.md\":\"CqzQng6c\",\"guide_q8.md\":\"BSrnOka_\",\"en_us_guide_services.md\":\"BZrwakNG\",\"guide_servers.md\":\"DHPSqlOF\",\"guide_services.md\":\"Bzgylzn0\",\"guide_nat.md\":\"nQ2t1iyk\",\"index.md\":\"Ulii4YOU\",\"guide_loginq.md\":\"Bz0mYj9s\",\"developer_index.md\":\"QHN2Tko3\",\"guide_notifications.md\":\"DzSDuDth\",\"guide_settings.md\":\"D5ziJzX7\",\"developer_l10n.md\":\"-Vllc-03\",\"case_case2.md\":\"DudrMobN\",\"guide_q5.md\":\"DZiogOwg\",\"en_us_case_index.md\":\"BLE9De4E\",\"en_us_guide_ddns.md\":\"CsHGTEi0\",\"en_us_guide_api.md\":\"BTvUP40J\",\"en_us_guide_dashboardq.md\":\"f_gDdFwV\",\"en_us_guide_agentq.md\":\"Co3vrwco\",\"en_us_guide_nat.md\":\"Csw2ZwhX\",\"en_us_developer_index.md\":\"BZVWbM_o\",\"en_us_guide_notifications.md\":\"CQWL8cj6\",\"en_us_guide_q10.md\":\"D62yy3O0\",\"en_us_developer_l10n.md\":\"5kjZCXjh\",\"guide_agentq.md\":\"kSnXdYnd\",\"en_us_guide_q5.md\":\"_cp509ut\",\"en_us_guide_q9.md\":\"BzjWZmH6\",\"en_us_guide_servers.md\":\"UHni13lh\",\"en_us_case_case1.md\":\"CU51fJMA\",\"guide_q9.md\":\"D_7Ji-3X\",\"guide_tasks.md\":\"MyyTd0y9\",\"guide_q6.md\":\"DOKRcnxs\",\"en_us_guide_q11.md\":\"B3jTBBGw\",\"guide_q10.md\":\"DC4WQbAS\",\"guide_agent.md\":\"BuczWAdN\",\"guide_q2.md\":\"BD5-Xozv\",\"case_case3.md\":\"BpV3SU2l\",\"en_us_case_case4.md\":\"CacpwCrs\",\"en_us_guide_q8.md\":\"5xL8Cgg1\",\"guide_q7.md\":\"CELJ4Pn-\",\"en_us_guide_tasks.md\":\"DRA1j-FT\",\"en_us_guide_loginq.md\":\"N0WxRi3q\",\"en_us_case_case5.md\":\"fi_50bxY\",\"case_case5.md\":\"BehGV_DU\",\"en_us_guide_q6.md\":\"DKI0jIMo\",\"case_case7.md\":\"Bju-vy9u\",\"guide_q1.md\":\"CbqSB81s\",\"en_us_guide_q2.md\":\"BfbOjzZ0\",\"case_case6.md\":\"uTq0QBKg\",\"case_case1.md\":\"Drb9GF8D\",\"en_us_case_case7.md\":\"C8Dpudb-\",\"guide_q3.md\":\"Cfeh4cgX\",\"en_us_guide_dashboard.md\":\"BcKVNW16\",\"en_us_guide_agent.md\":\"BSjk37nY\",\"guide_api.md\":\"DuJQKMrg\",\"guide_dashboard.md\":\"Bzr4OJsx\",\"guide_q11.md\":\"CyQBvjOC\",\"guide_dashboardq.md\":\"xiTDbE5Y\",\"en_us_guide_q7.md\":\"C4XhgWI_\",\"en_us_guide_q4.md\":\"CALX9Gz-\",\"en_us_developer_theme.md\":\"BxsHsvue\",\"en_us_guide_q3.md\":\"Cqa5isuw\",\"en_us_guide_settings.md\":\"BeozcmLt\",\"developer_theme.md\":\"zPdC-G8q\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"zh-CN\",\"dir\":\"ltr\",\"title\":\"VitePress\",\"description\":\"A VitePress site\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"logo\":{\"src\":\"/logo.png\",\"width\":24,\"height\":24,\"alt\":\"NezhaLogo\"},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nezhahq/nezhahq.github.io\"},{\"icon\":{\"svg\":\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 496 512\\\"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d=\\\"M248 8C111 8 0 119 0 256S111 504 248 504 496 393 496 256 385 8 248 8zM363 176.7c-3.7 39.2-19.9 134.4-28.1 178.3-3.5 18.6-10.3 24.8-16.9 25.4-14.4 1.3-25.3-9.5-39.3-18.7-21.8-14.3-34.2-23.2-55.3-37.2-24.5-16.1-8.6-25 5.3-39.5 3.7-3.8 67.1-61.5 68.3-66.7 .2-.7 .3-3.1-1.2-4.4s-3.6-.8-5.1-.5q-3.3 .7-104.6 69.1-14.8 10.2-26.9 9.9c-8.9-.2-25.9-5-38.6-9.1-15.5-5-27.9-7.7-26.8-16.3q.8-6.7 18.5-13.7 108.4-47.2 144.6-62.3c68.9-28.6 83.2-33.6 92.5-33.8 2.1 0 6.6 .5 9.6 2.9a10.5 10.5 0 0 1 3.5 6.7A43.8 43.8 0 0 1 363 176.7z\\\"/></svg>\"},\"link\":\"https://t.me/nezhanews\"}],\"search\":{\"provider\":\"algolia\",\"options\":{\"appId\":\"HP6QF6KMZD\",\"apiKey\":\"fb8bae9ed373d1057e0c07fcf32b3f1a\",\"indexName\":\"nezhahq\",\"locales\":{\"root\":{\"placeholder\":\"搜索文档\",\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"searchBox\":{\"resetButtonTitle\":\"清除查询条件\",\"resetButtonAriaLabel\":\"清除查询条件\",\"cancelButtonText\":\"取消\",\"cancelButtonAriaLabel\":\"取消\"},\"startScreen\":{\"recentSearchesTitle\":\"搜索历史\",\"noRecentSearchesText\":\"没有搜索历史\",\"saveRecentSearchButtonTitle\":\"保存至搜索历史\",\"removeRecentSearchButtonTitle\":\"从搜索历史中移除\",\"favoriteSearchesTitle\":\"收藏\",\"removeFavoriteSearchButtonTitle\":\"从收藏中移除\"},\"errorScreen\":{\"titleText\":\"无法获取结果\",\"helpText\":\"你可能需要检查你的网络连接\"},\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"searchByText\":\"搜索提供者\"},\"noResultsScreen\":{\"noResultsText\":\"无法找到相关结果\",\"suggestedQueryText\":\"你可以尝试查询\",\"reportMissingResultsText\":\"你认为该查询应该有结果?\",\Line truncated
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><ul><li>运行 <code>chmod +x /etc/init.d/nezha-service</code> 赋予执行权限。</li><li>启动服务: <code>/etc/init.d/nezha-service enable &amp;&amp; /etc/init.d/nezha-service start</code></li></ul></details><h2 id="agent-有-docker-镜像吗" tabindex="-1">Agent 有 Docker 镜像吗? <a class="header-anchor" href="#agent-有-docker-镜像吗" aria-label="Permalink to &quot;Agent 有 Docker 镜像吗?&quot;">​</a></h2><p><strong>Agent 目前没有推出 Docker 镜像。</strong><br> Agent 的设计思路和 Dashboard 相反,Dashboard 要尽可能不影响宿主机工作,但 Agent 则需要在宿主机中执行监控服务和运行命令。<br> 将 Agent 放入容器中确实可以继续执行监控任务,但 WebShell 等功能无法正常运行,因此不提供 Docker 镜像。</p></div></div></main><footer class="VPDocFooter" data-v-39a288b8 data-v-d4a0bba5><!--[--><!--]--><div class="edit-info" data-v-d4a0bba5><div class="edit-link" data-v-d4a0bba5><a class="VPLink link vp-external-link-icon no-icon edit-link-button" href="https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/guide/agent.md" target="_blank" rel="noreferrer" data-v-d4a0bba5><!--[--><span class="vpi-square-pen edit-link-icon" data-v-d4a0bba5></span> 在GitHub中编辑<!--]--></a></div><div class="last-updated" data-v-d4a0bba5><p class="VPLastUpdated" data-v-d4a0bba5 data-v-7e05ebdb>上次更新: <time datetime="2024-11-25T07:58:43.000Z" data-v-7e05ebdb></time></p></div></div><nav class="prev-next" aria-labelledby="doc-footer-aria-label" data-v-d4a0bba5><span class="visually-hidden" id="doc-footer-aria-label" data-v-d4a0bba5>Pager</span><div class="pager" data-v-d4a0bba5><a class="VPLink link pager-link prev" href="/guide/dashboard.html" data-v-d4a0bba5><!--[--><span class="desc" data-v-d4a0bba5>Previous page</span><span class="title" data-v-d4a0bba5>安装 Dashboard</span><!--]--></a></div><div class="pager" data-v-d4a0bba5><a class="VPLink link pager-link next" href="/guide/servers.html" data-v-d4a0bba5><!--[--><span class="desc" data-v-d4a0bba5>Next page</span><span class="title" data-v-d4a0bba5>服务器</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-5d98c3a5 data-v-e315a0ad><div class="container" data-v-e315a0ad><p class="message" data-v-e315a0ad>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License</p><p class="copyright" data-v-e315a0ad>Copyright © 2022-present NezhaHQ</p></div></footer><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"developer_index.md\":\"ye3PfB3-\",\"en_us_case_case1.md\":\"Ba8gewZ6\",\"en_us_guide_q2.md\":\"BdYRs_s9\",\"en_us_case_case4.md\":\"DB-wfY8y\",\"en_us_case_case5.md\":\"CSkituIs\",\"en_us_guide_q3.md\":\"CdXGDmJL\",\"en_us_guide_q9.md\":\"nn_5dMdf\",\"en_us_developer_l10n.md\":\"XBQ_3Abu\",\"en_us_guide_servers.md\":\"B3oa4ymX\",\"en_us_guide_api.md\":\"B7SlCX6N\",\"en_us_guide_q4.md\":\"BJkNqCql\",\"en_us_index.md\":\"D1U7Cexx\",\"en_us_guide_services.md\":\"42ZV920I\",\"developer_theme.md\":\"yi2XIKJt\",\"guide_q10.md\":\"DiIvXAYi\",\"guide_q11.md\":\"DClUsael\",\"guide_q2.md\":\"DtMO0dtm\",\"en_us_guide_q10.md\":\"osfoQDQi\",\"en_us_guide_q11.md\":\"Cx085Fxo\",\"case_case3.md\":\"Dv6Xc9yU\",\"guide_q3.md\":\"0iIre3Mh\",\"guide_q4.md\":\"Dn-_zD5O\",\"case_case5.md\":\"B16IKmIX\",\"case_case4.md\":\"CSymfuHV\",\"en_us_case_case6.md\":\"De9bTpTA\",\"en_us_guide_settings.md\":\"CfFsBnHL\",\"guide_q5.md\":\"gjm3BXS-\",\"guide_q6.md\":\"Cc68Y45X\",\"guide_tasks.md\":\"BzPghW25\",\"developer_l10n.md\":\"XzEs6w0F\",\"index.md\":\"YzXpf9jM\",\"en_us_guide_nat.md\":\"Bm1a6Dwz\",\"guide_dashboard.md\":\"Cto0sa35\",\"guide_dashboardq.md\":\"C9lCMePt\",\"guide_loginq.md\":\"CnJ6gnLD\",\"en_us_case_index.md\":\"DGTbX1EV\",\"guide_settings.md\":\"BQBL08BB\",\"en_us_developer_index.md\":\"C7NWMcEo\",\"en_us_guide_tasks.md\":\"BBiXJhsc\",\"en_us_case_case2.md\":\"TWhjXotc\",\"en_us_guide_q5.md\":\"dmeXbXkT\",\"en_us_case_case3.md\":\"CAI94Mh5\",\"guide_nat.md\":\"DpUGasQ9\",\"guide_agent.md\":\"D5fn7vFK\",\"guide_q8.md\":\"BsCGKX4S\",\"guide_notifications.md\":\"Z1WGTu70\",\"en_us_guide_q8.md\":\"BbSzgA8n\",\"en_us_guide_dashboard.md\":\"D5-Qa-Bd\",\"en_us_guide_loginq.md\":\"DK7A_9g2\",\"en_us_case_case7.md\":\"Cop8wLoV\",\"guide_servers.md\":\"BFOMkC1j\",\"en_us_guide_q7.md\":\"BiLpPPiv\",\"en_us_guide_agentq.md\":\"syI2hhx-\",\"guide_agentq.md\":\"D--T1yuE\",\"case_case2.md\":\"DqTRdA-m\",\"case_case1.md\":\"Ce-PdIPb\",\"guide_q1.md\":\"Cwu7c2wW\",\"en_us_guide_notifications.md\":\"CazaFiKA\",\"guide_q9.md\":\"EqT3EdyS\",\"case_case6.md\":\"8CRS1o6R\",\"en_us_guide_q6.md\":\"B38wvOHW\",\"case_case7.md\":\"CeE0DjzU\",\"case_index.md\":\"DDEdRxEt\",\"guide_services.md\":\"C_O0Sby9\",\"en_us_guide_ddns.md\":\"B3Hwjtpc\",\"guide_api.md\":\"nRk5Ly_w\",\"guide_q7.md\":\"BrDNRaw0\",\"guide_ddns.md\":\"XXcpPxx0\",\"en_us_guide_dashboardq.md\":\"DKl5bwtM\",\"en_us_guide_agent.md\":\"BOJ8LATb\",\"en_us_developer_theme.md\":\"Cm-AKaYr\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"zh-CN\",\"dir\":\"ltr\",\"title\":\"VitePress\",\"description\":\"A VitePress site\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"logo\":{\"src\":\"/logo.png\",\"width\":24,\"height\":24,\"alt\":\"NezhaLogo\"},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nezhahq/nezhahq.github.io\"},{\"icon\":{\"svg\":\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 496 512\\\"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d=\\\"M248 8C111 8 0 119 0 256S111 504 248 504 496 393 496 256 385 8 248 8zM363 176.7c-3.7 39.2-19.9 134.4-28.1 178.3-3.5 18.6-10.3 24.8-16.9 25.4-14.4 1.3-25.3-9.5-39.3-18.7-21.8-14.3-34.2-23.2-55.3-37.2-24.5-16.1-8.6-25 5.3-39.5 3.7-3.8 67.1-61.5 68.3-66.7 .2-.7 .3-3.1-1.2-4.4s-3.6-.8-5.1-.5q-3.3 .7-104.6 69.1-14.8 10.2-26.9 9.9c-8.9-.2-25.9-5-38.6-9.1-15.5-5-27.9-7.7-26.8-16.3q.8-6.7 18.5-13.7 108.4-47.2 144.6-62.3c68.9-28.6 83.2-33.6 92.5-33.8 2.1 0 6.6 .5 9.6 2.9a10.5 10.5 0 0 1 3.5 6.7A43.8 43.8 0 0 1 363 176.7z\\\"/></svg>\"},\"link\":\"https://t.me/nezhanews\"}],\"search\":{\"provider\":\"algolia\",\"options\":{\"appId\":\"HP6QF6KMZD\",\"apiKey\":\"fb8bae9ed373d1057e0c07fcf32b3f1a\",\"indexName\":\"nezhahq\",\"locales\":{\"root\":{\"placeholder\":\"搜索文档\",\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"searchBox\":{\"resetButtonTitle\":\"清除查询条件\",\"resetButtonAriaLabel\":\"清除查询条件\",\"cancelButtonText\":\"取消\",\"cancelButtonAriaLabel\":\"取消\"},\"startScreen\":{\"recentSearchesTitle\":\"搜索历史\",\"noRecentSearchesText\":\"没有搜索历史\",\"saveRecentSearchButtonTitle\":\"保存至搜索历史\",\"removeRecentSearchButtonTitle\":\"从搜索历史中移除\",\"favoriteSearchesTitle\":\"收藏\",\"removeFavoriteSearchButtonTitle\":\"从收藏中移除\"},\"errorScreen\":{\"titleText\":\"无法获取结果\",\"helpText\":\"你可能需要检查你的网络连接\"},\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"searchByText\":\"搜索提供者\"},\"noResultsScreen\":{\"noResultsText\":\"无法找到相关结果\",\"suggestedQueryText\":\"你可以尝试查询\",\"reportMissingResultsText\":\"你认为该查询应该有结果?\",\Line truncated
</body>
</html>