Ubuntu 安装 fluentd
Ubuntu 安装 fluentd
1.添加GPG key
apt-key add /path/to/RPM-GPG-KEY-td-agent
2.添加镜像源
echo "deb http://packages.treasure-data.com/precise/ precise contrib" > /etc/apt/sources.list.d/treasure-data.list
apt-get update
3.安装
apt-get install -y --force-yes td-agent
4.其他方法安装
curl -L http://toolbelt.treasuredata.com/sh/install-ubuntu-precise.sh | sh
https://docs.fluentd.org/installation/install-by-deb // 官网安装
5.查看状态
$ /etc/init.d/td-agent start
$ /etc/init.d/td-agent stop
$ /etc/init.d/td-agent restart
$ /etc/init.d/td-agent status
6.配置文件
/etc/td-agent/td-agent.conf
7.测试
curl -X POST -d ‘json={"json":"message"}‘ http://localhost:8888/debug.test
tail -n 10 /var/log/td-agent/td-agent.log
【励志篇】:
古之成大事掌大学问者,不惟有超世之才,亦必有坚韧不拔之志。