# 树莓派

Fluent Bit 发布的软件包为 **td-agent-bit**，可用于 Raspberry，特别是 [Raspbian](http://raspbian.org) 的发行版，支持以下版本:

* Raspbian Buster (10)
* Raspbian Stretch (9)
* Raspbian Jessie (8)

## Server GPG key

第一步，将我们的服务器 GPG 密钥添加到您的密钥环中，这样就可以获取我们签名的软件包:

```
$ wget -qO - https://packages.fluentbit.io/fluentbit.key | sudo apt-key add -
```

## Update your sources lists

在 Debian 及其衍生系统，例如 Raspbian 上，您需要将我们的 APT 服务器实例添加到您的源列表中，请在 **/etc/apt/sources.list** 文件中添加如下内容:

#### Raspbian 10 (Buster)

```
deb https://packages.fluentbit.io/raspbian/buster buster main
```

#### Raspbian 9 (Stretch)

```
deb https://packages.fluentbit.io/raspbian/stretch stretch main
```

#### Raspbian 8 (Jessie)

```
deb https://packages.fluentbit.io/raspbian/jessie jessie main
```

### Update your repositories database

现在，让您的系统更新 *apt* 数据库:

```bash
$ sudo apt-get update
```

## Install TD Agent Bit

现在，使用以下 *`apt-get`* 命令，您可以安装最新的 *td-agent-bit*:

```
$ sudo apt-get install td-agent-bit
```

Now the following step is to instruct *systemd* to enable the service:

```bash
$ sudo service td-agent-bit start
```

如果进行状态检查，应该会看到类似如下的输出:

```bash
sudo service td-agent-bit status
● td-agent-bit.service - TD Agent Bit
   Loaded: loaded (/lib/systemd/system/td-agent-bit.service; disabled; vendor preset: enabled)
   Active: active (running) since mié 2016-07-06 16:58:25 CST; 2h 45min ago
 Main PID: 6739 (td-agent-bit)
    Tasks: 1
   Memory: 656.0K
      CPU: 1.393s
   CGroup: /system.slice/td-agent-bit.service
           └─6739 /opt/td-agent-bit/bin/td-agent-bit -c /etc/td-agent-bit/td-agent-bit.conf
...
```

**td-agent-bit** 的默认配置是收集 CPU 使用率的指标数据并将记录发送到标准输出，您可以在 *`/var/log/syslog`* 文件中看到输出的数据。


---

# 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://hulining.gitbook.io/fluentbit/installation/linux/raspbian-raspberry-pi.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.
