This commit is contained in:
naiba
2022-11-19 06:46:09 +00:00
parent eff7f0d485
commit 7e356d4768
160 changed files with 216 additions and 216 deletions
+3 -3
View File
@@ -8,7 +8,7 @@
<link rel="stylesheet" href="/assets/style.0b9f658b.css">
<link rel="modulepreload" href="/assets/chunks/AlgoliaSearchBox.e3095d59.js">
<link rel="modulepreload" href="/assets/app.31af427a.js">
<link rel="modulepreload" href="/assets/en_US_guide_agent.md.b6e01641.lean.js">
<link rel="modulepreload" href="/assets/en_US_guide_agent.md.8f5ab1c5.lean.js">
<meta name="twitter:title" content="Install Agent using one-click script | Nezha Monitoring">
<meta property="og:title" content="Install Agent using one-click script | Nezha Monitoring">
@@ -107,7 +107,7 @@ EOF</span>
</code></pre></div><ul><li>Check if the service is running</li></ul><div class="language-shell"><pre><code>launchctl list <span class="token operator">|</span> <span class="token function">grep</span> nezha_agent
</code></pre></div><ul><li>Stop service and remove</li></ul><div class="language-shell"><pre><code>launchctl stop nezha_agent
</code></pre></div><div class="language-shell"><pre><code>launchctl remove nezha_agent
</code></pre></div><br><h3 id="installing-agent-on-openwrt" tabindex="-1">Installing Agent on OpenWRT <a class="header-anchor" href="#installing-agent-on-openwrt" aria-hidden="true">#</a></h3><p><strong>How to make the old version of OpenWRT/LEDE self-boot?</strong></p><ul><li>Please refer to the project:<br><a href="https://github.com/Erope/openwrt_nezha" target="_blank" rel="noopener noreferrer">哪吒监控 For OpenWRT</a> (Chinese) <br></li></ul><p><strong>How to make the new version of OpenWRT self-boot? By @艾斯德斯</strong></p><ul><li>First download the corresponding binary from the release, unzip the zip package and place it in <code>/root</code></li><li>Then run <code>chmod +x /root/nezha-agent</code> to give it execute access, create file <code>/etc/init.d/nezha-service</code></li></ul><div class="language-shell"><pre><code><span class="token shebang important">#!/bin/sh /etc/rc.common</span>
</code></pre></div><br><h3 id="installing-agent-on-openwrt" tabindex="-1">Installing Agent on OpenWRT <a class="header-anchor" href="#installing-agent-on-openwrt" aria-hidden="true">#</a></h3><p><strong>How to solve various problems during the installation process in one step</strong></p><ul><li>Please refer to the project:<br><a href="https://github.com/dysf888/NZ-OpenWrt" target="_blank" rel="noopener noreferrer">NZ-OpenWrt</a> (Chinese) <br></li></ul><p><strong>How to make the old version of OpenWRT/LEDE self-boot?</strong></p><ul><li>Please refer to the project:<br><a href="https://github.com/Erope/openwrt_nezha" target="_blank" rel="noopener noreferrer">哪吒监控 For OpenWRT</a> (Chinese) <br></li></ul><p><strong>How to make the new version of OpenWRT self-boot? By @艾斯德斯</strong></p><ul><li>First download the corresponding binary from the release, unzip the zip package and place it in <code>/root</code></li><li>Then run <code>chmod +x /root/nezha-agent</code> to give it execute access, create file <code>/etc/init.d/nezha-service</code></li></ul><div class="language-shell"><pre><code><span class="token shebang important">#!/bin/sh /etc/rc.common</span>
<span class="token assign-left variable">START</span><span class="token operator">=</span><span class="token number">99</span>
<span class="token assign-left variable">USE_PROCD</span><span class="token operator">=</span><span class="token number">1</span>
@@ -129,7 +129,7 @@ EOF</span>
start
<span class="token punctuation">}</span>
</code></pre></div><ul><li>Give it permission to execute: <code>chmod +x /etc/init.d/nezha-service</code></li><li>Start the service <code>/etc/init.d/nezha-service enable &amp;&amp; /etc/init.d/nezha-service start</code><br><br></li></ul><h2 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-hidden="true">#</a></h2><h3 id="is-there-a-docker-image-for-agent" tabindex="-1">Is there a Docker image for Agent? <a class="header-anchor" href="#is-there-a-docker-image-for-agent" aria-hidden="true">#</a></h3><p><strong>There is currently no Docker image for Agent.</strong><br> The Agent is designed to be the opposite of the Dashboard, in that the Dashboard is designed to work without affecting the server as much as possible, while the Agent needs to execute monitoring services and run commands in the server.<br> Putting the Agent in a container does continue to execute monitoring services, but features such as WebShell do not work, so we do not provide Docker image of the Agent.</p></div></div><footer class="page-footer" data-v-7eddb2c4 data-v-07c132fc><div class="edit" data-v-07c132fc><div class="edit-link" data-v-07c132fc data-v-1ed99556><a class="link" href="https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/en_US/guide/agent.md" target="_blank" rel="noopener noreferrer" data-v-1ed99556>Edit this page on GitHub <svg class="icon outbound icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-1ed99556><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><div class="updated" data-v-07c132fc><p class="last-updated" data-v-07c132fc data-v-abce3432><span class="prefix" data-v-abce3432>Last Updated:</span><span class="datetime" data-v-abce3432></span></p></div></footer><div class="next-and-prev-link" data-v-7eddb2c4 data-v-38ede35f><div class="container" data-v-38ede35f><div class="prev" data-v-38ede35f><a class="link" href="/en_US/guide/dashboard" data-v-38ede35f><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="icon icon-prev" data-v-38ede35f><path d="M19,11H7.4l5.3-5.3c0.4-0.4,0.4-1,0-1.4s-1-0.4-1.4,0l-7,7c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.2-0.1,0.5,0,0.8c0.1,0.1,0.1,0.2,0.2,0.3l7,7c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L7.4,13H19c0.6,0,1-0.4,1-1S19.6,11,19,11z"></path></svg><span class="text" data-v-38ede35f>Install Dashboard</span></a></div><div class="next" data-v-38ede35f><a class="link" href="/en_US/guide/servers" data-v-38ede35f><span class="text" data-v-38ede35f>Servers</span><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="icon icon-next" data-v-38ede35f><path d="M19.9,12.4c0.1-0.2,0.1-0.5,0-0.8c-0.1-0.1-0.1-0.2-0.2-0.3l-7-7c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l5.3,5.3H5c-0.6,0-1,0.4-1,1s0.4,1,1,1h11.6l-5.3,5.3c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l7-7C19.8,12.6,19.9,12.5,19.9,12.4z"></path></svg></a></div></div></div><!--[--><!--]--></div></main></div><!----><!--]--></div>
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case1.md\":\"09e24e3a\",\"case_case2.md\":\"a907c96f\",\"case_case3.md\":\"c63f418b\",\"case_case4.md\":\"9409890f\",\"case_index.md\":\"d508d591\",\"developer_index.md\":\"3f0619c9\",\"developer_l10n.md\":\"fdcf8c12\",\"developer_theme.md\":\"7ad02f06\",\"en_us_case_case1.md\":\"7962de8b\",\"en_us_case_case2.md\":\"b9dce625\",\"en_us_case_case3.md\":\"612c6315\",\"en_us_case_case4.md\":\"3f304990\",\"en_us_case_index.md\":\"0c9eb3b6\",\"en_us_developer_index.md\":\"acba0853\",\"en_us_developer_l10n.md\":\"6d2d30a1\",\"en_us_developer_theme.md\":\"3db9c25f\",\"en_us_guide_agent.md\":\"b6e01641\",\"en_us_guide_agentq.md\":\"2676b214\",\"en_us_guide_api.md\":\"1d55bd7f\",\"en_us_guide_dashboard.md\":\"b9855337\",\"en_us_guide_dashboardq.md\":\"adaef3f3\",\"en_us_guide_loginq.md\":\"18c0313a\",\"en_us_guide_notifications.md\":\"93f85cb8\",\"en_us_guide_q2.md\":\"1a597fad\",\"en_us_guide_q3.md\":\"4b31d410\",\"en_us_guide_q4.md\":\"bc7290a8\",\"en_us_guide_q5.md\":\"5618c79c\",\"en_us_guide_q6.md\":\"cb231a5b\",\"en_us_guide_q7.md\":\"1553b49e\",\"en_us_guide_servers.md\":\"5df0a30f\",\"en_us_guide_services.md\":\"f4e8ccd9\",\"en_us_guide_settings.md\":\"6c2d9640\",\"en_us_guide_tasks.md\":\"5cbf04cf\",\"en_us_index.md\":\"a57ce441\",\"guide_agent.md\":\"55747472\",\"guide_agentq.md\":\"30b40958\",\"guide_api.md\":\"14881521\",\"guide_dashboard.md\":\"059ec3b8\",\"guide_dashboardq.md\":\"efeabd85\",\"guide_loginq.md\":\"c90b42c8\",\"guide_notifications.md\":\"f34639fa\",\"guide_q1.md\":\"7ccf4270\",\"guide_q2.md\":\"419f4b06\",\"guide_q3.md\":\"a64e415e\",\"guide_q4.md\":\"37fc6a83\",\"guide_q5.md\":\"096a4d99\",\"guide_q6.md\":\"7f7b237d\",\"guide_q7.md\":\"04357265\",\"guide_servers.md\":\"86a48d32\",\"guide_services.md\":\"eb57ab44\",\"guide_settings.md\":\"364d6a03\",\"guide_tasks.md\":\"caebad40\",\"index.md\":\"8b413d30\"}")</script>
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case1.md\":\"051e922f\",\"case_case2.md\":\"b11abb2d\",\"case_case3.md\":\"d61b7ba0\",\"case_case4.md\":\"87e13de0\",\"case_index.md\":\"9468334f\",\"developer_index.md\":\"8625b883\",\"developer_l10n.md\":\"3ede7e37\",\"developer_theme.md\":\"d8301389\",\"en_us_case_case1.md\":\"d280612c\",\"en_us_case_case2.md\":\"26ad9c89\",\"en_us_case_case3.md\":\"6349a930\",\"en_us_case_case4.md\":\"9b85f30e\",\"en_us_case_index.md\":\"e4ef2044\",\"en_us_developer_index.md\":\"27693771\",\"en_us_developer_l10n.md\":\"12d889ea\",\"en_us_developer_theme.md\":\"f5a6bcb9\",\"en_us_guide_agent.md\":\"8f5ab1c5\",\"en_us_guide_agentq.md\":\"7911e9b8\",\"en_us_guide_api.md\":\"4c240e80\",\"en_us_guide_dashboard.md\":\"87aa68fb\",\"en_us_guide_dashboardq.md\":\"650fd56f\",\"en_us_guide_loginq.md\":\"098630f2\",\"en_us_guide_notifications.md\":\"df6cb8b2\",\"en_us_guide_q2.md\":\"b9a51ca6\",\"en_us_guide_q3.md\":\"a3b98ba0\",\"en_us_guide_q4.md\":\"a5053675\",\"en_us_guide_q5.md\":\"47e91d27\",\"en_us_guide_q6.md\":\"5f58271d\",\"en_us_guide_q7.md\":\"c7f4cd26\",\"en_us_guide_servers.md\":\"a9f9993a\",\"en_us_guide_services.md\":\"a77bef8f\",\"en_us_guide_settings.md\":\"3f668265\",\"en_us_guide_tasks.md\":\"bf331a2d\",\"en_us_index.md\":\"99c137ac\",\"guide_agent.md\":\"bd1176ff\",\"guide_agentq.md\":\"3d62d4a1\",\"guide_api.md\":\"92164763\",\"guide_dashboard.md\":\"232d466d\",\"guide_dashboardq.md\":\"557e463f\",\"guide_loginq.md\":\"f36d6503\",\"guide_notifications.md\":\"f8946a8f\",\"guide_q1.md\":\"9938c2c8\",\"guide_q2.md\":\"27e73c8d\",\"guide_q3.md\":\"6bba4181\",\"guide_q4.md\":\"6c35c6b5\",\"guide_q5.md\":\"78f01120\",\"guide_q6.md\":\"d7cd1905\",\"guide_q7.md\":\"b0ae037f\",\"guide_servers.md\":\"552d64fa\",\"guide_services.md\":\"33845a7e\",\"guide_settings.md\":\"dcb7c71e\",\"guide_tasks.md\":\"fa9aeffc\",\"index.md\":\"90917cd0\"}")</script>
<script type="module" async src="/assets/app.31af427a.js"></script>
</body>