#参考地址:https://github.com/firehol/netdata/wiki/Installation
dnf update -y
dnf install zlib-devel libuuid-devel libmnl-devel gcc make git autoconf autoconf-archive autogen automake pkgconfig curl findutils -y
# download it - the directory 'netdata' will be created
git clone https://github.com/firehol/netdata.git --depth=1
cd netdata
# run script with root privileges to build, install, start netdata
./netdata-installer.sh
firewall-cmd --add-port=19999/{tcp,udp}
firewall-cmd --add-port=19999/{tcp,udp} --permanent
##########
# stop netdata
killall netdata
# copy netdata.service to systemd
cp system/netdata.service /etc/systemd/system/
# let systemd know there is a new service
systemctl daemon-reload
# enable netdata at boot
systemctl enable netdata
# start netdata
systemctl start netdata
###########