- 安装依赖
yum install autoconf automake curl gcc git libmnl-devel libuuid-devel openssl-devel libuv-devel lz4-devel Judy-devel make nc pkgconfig python zlib-devel
- 下载资源
git clone https://github.com/netdata/netdata.git --depth=100
- 安装
cd netdata
./netdata-installer.sh
- 设置开机启动
systemctl enable netdata
- 开启防火墙
firewall-cmd --add-port=19999/tcp --permernent
firewall-cmd --reload
- 设置记录保留时间为1天
cd /etc/netdata
vim netdata.conf
# 20行位置修改[global]下的history = 86400