netdata安装
安装环境准备
yum install -y autoconf automake curl gcc git libmnl-devel libuuid-devel lm_sensors make MySQL-python nc pkgconfig python python-psycopg2 PyYAML zlib-devel
netdata 安装
# 下载源码,安装netdatacd /mnt/tools/git clone https://github.com/firehol/netdata.git --depth=1cd netdata# 使用root用户执行 进行编译、安装和启动./netdata-installer.sh
配置服务项
# 复制netdata启动项到 /etc/init.dcp system/netdata-init-d /etc/init.d/netdata# 确保启动项可执行chmod +x /etc/init.d/netdata# 注册服务chkconfig --add netdata# 设置开机启动# Centos6chkconfig netdata on# Centos7systemctl enable netdata.service
服务启动与停止
Centos6
service netdata startservice netdata stop
Centos7
systemctl start netdata.servicesystemctl stop netdata.service
访问网站
http://ip:19999/http://127.0.0.1:19999/
卸载netdata
脚本netdata-installer.sh
会在安装时生成netdata-uninstaller.sh
执行脚本来卸载
cd /mnt/netdata./netdata-uninstaller.sh --force
评论列表