# 安装node\_exporter

**安装node\_exporter**

* 安装

```shell
#新建一个rq文件夹在下面的路径
cd /usr/local/rq
#上传压缩文件里面的node-export
#进入system里面把node exporter的service文件上传
cd /usr/lib/systemed/system
#执行压缩文件里面的脚本chmod.sh
cd /usr/local/rq/node_exporter
sh chmod.sh
```

* 启动服务：

```
systemctl daemon-reload
systemctl start node_exporter.service
systemctl status node_exporter.service
```

* 可以手动测试是否可以获取metrics信息：

```
curl http://localhost:9100/metrics
```

* 开启防火墙：

  ```
  firewall-cmd --zone=public --add-port=9100/tcp --permanent
  ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://qiangrens-organization.gitbook.io/qkd90/fu-wu-qi-yun-wei-he-ce-shi/an-zhuang-nodeexporter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
