Skip to content

Latest commit

 

History

History
executable file
·
43 lines (29 loc) · 651 Bytes

netdata安装.md

File metadata and controls

executable file
·
43 lines (29 loc) · 651 Bytes

netdata安装教程

  1. 安装依赖
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
  1. 下载资源
git clone https://github.com/netdata/netdata.git --depth=100
  1. 安装
cd netdata
./netdata-installer.sh
  1. 设置开机启动
systemctl enable netdata
  1. 开启防火墙
firewall-cmd --add-port=19999/tcp --permernent
firewall-cmd --reload
  1. 设置记录保留时间为1天
cd /etc/netdata
vim netdata.conf

# 20行位置修改[global]下的history = 86400