1.安装依赖
# yum install zlib-devel libuuid-devel libmnl-devel gcc make git autoconf autogen automake pkgconfig -y
2.下载
# git clone https://github.com/firehol/netdata.git 在https://github.com/netdata/netdata/releases 下载对应版本的tar包
3.安装
a、方式一 tar包安装
# tar -zxvf netdata-v1.11.1.tar.gz
# cd netdata-1.11.1_rolling/
# ./netdata-installer.sh
b、方式二 yum安装
默认epel源里附带netdata的rpm包,可以直接安装
# yum inistall netdata -y
修改配置
# vim /etc/netdata/netdata.conf
[web]
web files owner = root
web files group = root
bind to = 127.0.0.1
修改为
bind to = 172.16.40.24
注意:在安装的时候注意查看19999端口是否被占用,如被占用可能会导致服务启动异常
4.检查服务
# systemctl status netdata
● netdata.service - Real time performance monitoring
Loaded: loaded (/etc/systemd/system/netdata.service; enabled; vendor preset: disabled)
Active: active (running) since 五 2016-12-23 16:37:09 CST; 41s ago
Main PID: 33628 (netdata)
CGroup: /system.slice/netdata.service
├─33628 /usr/sbin/netdata -D
├─33635 bash /usr/libexec/netdata/plugins.d/tc-qos-helper.sh 1
├─33645 /usr/bin/python /usr/libexec/netdata/plugins.d/python.d.plugin 1
└─33652 /usr/libexec/netdata/plugins.d/apps.plugin 1
12月 23 16:37:09 hadoop001 systemd[1]: Started Real time performance monitoring.
12月 23 16:37:09 hadoop001 systemd[1]: Starting Real time performance monitoring...
12月 23 16:37:09 hadoop001 apps.plugin[33652]: started on pid 33652
5.页面查看
6.修改端口
# vi /etc/netdata/netdata.conf
[web]
default port = 2345
重启服务 # systemctl restart netdata 页面查看
7.配置文件
配置文件是/etc/netdata目录下netdata.conf,但这个文件可以为空,都是默认配置,可以在页面查看
http://192.168.30.11:2345/netdata.conf
来源:oschina
链接:https://my.oschina.net/u/2731030/blog/877781