yum安装filebeat6.4.2
时间: 2023-10-31 16:59:20 浏览: 51
以下是在CentOS 7上使用yum安装filebeat 6.4.2的步骤:
1. 首先,打开终端并使用root用户以管理员身份登录系统。
2. 然后,更新yum包管理器的缓存:
```
yum makecache fast
```
3. 接下来,添加Elasticsearch的yum软件仓库到系统中:
```
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
echo "[elastic-6.x]
name=Elastic repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md" | sudo tee /etc/yum.repos.d/elastic-6.x.repo
```
4. 最后,安装filebeat 6.4.2:
```
yum install filebeat-6.4.2
```
5. 安装完成后,可以使用以下命令启动、停止或重新启动filebeat服务:
```
systemctl start filebeat
systemctl stop filebeat
systemctl restart filebeat
```