This commit is contained in:
cantoblanco committed 2024-07-13 14:45:12 +00:00
1 parent 50949c61bd
commit 12f05c3484
179 files changed
+291 -291

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.BNdp2k15.lean.js">
<link rel="modulepreload" href="/assets/guide_agent.md.CM_Fo0eC.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>
@@ -166,8 +166,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-07-12T12:16:08.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_case1.md\":\"BraHvlgE\",\"en_us_case_case3.md\":\"CXdArAfV\",\"en_us_guide_dashboard.md\":\"IAKxUCxk\",\"case_index.md\":\"CL56yXw-\",\"developer_theme.md\":\"CfFaPJHY\",\"en_us_guide_servers.md\":\"XQejGsSi\",\"en_us_guide_tasks.md\":\"DU-6LtoC\",\"en_us_index.md\":\"BFJMY7JM\",\"guide_agentq.md\":\"_rmJhPsl\",\"guide_dashboardq.md\":\"D32G9OEQ\",\"guide_loginq.md\":\"CZ_8LbD6\",\"guide_q2.md\":\"eGLvmANK\",\"guide_api.md\":\"B6j89lxB\",\"guide_q4.md\":\"DOJVnMdI\",\"guide_q5.md\":\"B7LLFbiP\",\"guide_q3.md\":\"CmXVQATa\",\"guide_q7.md\":\"DsOlVXjH\",\"guide_q6.md\":\"DJvdtQgS\",\"guide_servers.md\":\"B4eeJ4Bm\",\"guide_q8.md\":\"kKu1iLFh\",\"guide_q9.md\":\"qE5MO02L\",\"guide_services.md\":\"C3MLrZZR\",\"guide_tasks.md\":\"PGFQInxq\",\"en_us_guide_q6.md\":\"BuezOVXG\",\"en_us_guide_q7.md\":\"-0Fp7z5x\",\"en_us_guide_dashboardq.md\":\"BLzwbzCJ\",\"en_us_guide_q5.md\":\"COGzAeKo\",\"case_case3.md\":\"DEI3MTl0\",\"en_us_guide_q8.md\":\"CvKuBi3w\",\"en_us_guide_notifications.md\":\"CzLtgVKn\",\"case_case4.md\":\"CXDl4wcm\",\"developer_l10n.md\":\"iHv70E2_\",\"en_us_guide_services.md\":\"MGhKMJ8G\",\"guide_settings.md\":\"BYk6vGQ3\",\"case_case1.md\":\"BGyfa1Bl\",\"en_us_guide_q2.md\":\"Bp7X-6bb\",\"en_us_developer_l10n.md\":\"BQjj7YDS\",\"en_us_guide_q4.md\":\"Iv-W_P5U\",\"en_us_guide_q3.md\":\"YormCwG5\",\"en_us_case_index.md\":\"BCmCB96F\",\"case_case5.md\":\"BcWkSPYi\",\"en_us_developer_index.md\":\"vCv6fdms\",\"developer_index.md\":\"Bk47pngF\",\"en_us_case_case4.md\":\"pifNT2cZ\",\"en_us_developer_theme.md\":\"DxRNO9UW\",\"en_us_case_case2.md\":\"B3B7WMGF\",\"en_us_guide_api.md\":\"Dni33a3H\",\"en_us_case_case5.md\":\"DgPlQZV_\",\"index.md\":\"CMjTAWgc\",\"en_us_guide_q9.md\":\"D_PhynZb\",\"en_us_guide_loginq.md\":\"D3Z56OkQ\",\"case_case2.md\":\"CnuKxxiC\",\"en_us_guide_agent.md\":\"DlLJ0Yp5\",\"guide_q1.md\":\"By2wEVoV\",\"en_us_guide_agentq.md\":\"pLT_iNiH\",\"guide_agent.md\":\"BNdp2k15\",\"en_us_guide_settings.md\":\"FZoi-siH\",\"guide_dashboard.md\":\"Cf-R2oQB\",\"guide_notifications.md\":\"DFWSZjrA\"}");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\":\"你认为该查询应该有结果?\",\"reportMissingResultsLinkText\":\"点击反馈\"}}}}}}},\"footer\":{\"message\":\"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\",\"copyright\":\"Copyright © 2022-present NezhaHQ\"}},\"locales\":{\"root\":{\"lang\":\"zh-CN\",\"label\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-07-13T14:44:24.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_case2.md\":\"e4I5L63c\",\"developer_index.md\":\"DUiahKCM\",\"case_case5.md\":\"osZVBcFL\",\"en_us_developer_index.md\":\"BDrJUsur\",\"en_us_guide_q9.md\":\"smduIPrj\",\"developer_theme.md\":\"DwRLCISJ\",\"case_index.md\":\"4DjBqaIJ\",\"en_us_case_case1.md\":\"ByY4CFbz\",\"en_us_guide_servers.md\":\"DVACrWao\",\"en_us_case_case3.md\":\"CpXzTru0\",\"case_case4.md\":\"CM7HxnXM\",\"en_us_guide_q6.md\":\"BA2Mixt2\",\"case_case1.md\":\"LpPNSlns\",\"developer_l10n.md\":\"CeCojXbD\",\"guide_tasks.md\":\"Bi5G2Mf7\",\"index.md\":\"BGk4-g1D\",\"guide_services.md\":\"C8QNUzqS\",\"guide_q6.md\":\"CrQuSOZ7\",\"guide_servers.md\":\"BKp937FG\",\"guide_q9.md\":\"CmMyPOr7\",\"guide_q7.md\":\"fXYFTmHt\",\"case_case2.md\":\"DocdANBo\",\"en_us_case_case4.md\":\"BY6h5Lyf\",\"guide_q8.md\":\"DLb5AhjW\",\"en_us_guide_q7.md\":\"CEsTx0IJ\",\"en_us_developer_theme.md\":\"CEA7TVXg\",\"en_us_guide_q2.md\":\"DKpM-o7X\",\"en_us_guide_q5.md\":\"DTWM_xSc\",\"guide_q2.md\":\"htjQAYGX\",\"en_us_guide_agent.md\":\"QSO76OyE\",\"guide_notifications.md\":\"BhXbFpT6\",\"case_case3.md\":\"CjLXeVWH\",\"guide_q1.md\":\"Mf0l__AA\",\"en_us_guide_q8.md\":\"CmRXWc2s\",\"en_us_index.md\":\"5DlTH31p\",\"guide_agentq.md\":\"CCawlDAk\",\"en_us_guide_loginq.md\":\"Dw2Asnbl\",\"en_us_developer_l10n.md\":\"CPk2FH8T\",\"en_us_case_case5.md\":\"DA6NprQ-\",\"en_us_guide_api.md\":\"Bk6_Wmwt\",\"en_us_guide_agentq.md\":\"CQxYnGfY\",\"en_us_guide_q4.md\":\"aYJ-8xKH\",\"guide_agent.md\":\"CM_Fo0eC\",\"en_us_guide_notifications.md\":\"C1ETW-wK\",\"guide_settings.md\":\"2PNw4VLJ\",\"en_us_guide_settings.md\":\"BU607WHw\",\"en_us_guide_q3.md\":\"DLsqDyYo\",\"en_us_guide_services.md\":\"BBxKQ1c6\",\"guide_q5.md\":\"BBH3g7xw\",\"guide_loginq.md\":\"DKJlin4f\",\"guide_dashboard.md\":\"BNmWtZKa\",\"guide_api.md\":\"CnBJFfdg\",\"en_us_case_index.md\":\"BohQDlQR\",\"en_us_guide_dashboard.md\":\"DRdDzW_7\",\"guide_q3.md\":\"COlsnPXw\",\"en_us_guide_tasks.md\":\"DTnzO10E\",\"en_us_guide_dashboardq.md\":\"B4DEvbIt\",\"guide_dashboardq.md\":\"CKDV9jtc\",\"guide_q4.md\":\"U4ZAnBDm\"}");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\":\"你认为该查询应该有结果?\",\"reportMissingResultsLinkText\":\"点击反馈\"}}}}}}},\"footer\":{\"message\":\"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\",\"copyright\":\"Copyright © 2022-present NezhaHQ\"}},\"locales\":{\"root\":{\"lang\":\"zh-CN\",\"label\Line truncated
</body>
</html>