在CentOS 8上安装Netdata Monitoring
步骤1.首先,让我们首先确保您的系统是最新的。
sudo dnf clean all sudo dnf update sudo dnf install git zlib-devel libuuid-devel libmnl gcc make git autoconf automake pkgconfig curl findutils
步骤2.在CentOS 8上安装Netdata Monitoring。
现在我们从Github克隆Netdata代码:
git clone https://github.com/netdata/netdata.git --depth=100
完成后,使用以下命令开始构建和安装:
cd netdata/ sudo ./netdata-installer.sh
如果安装成功,您应该获得如下输出:
--- Check KSM (kernel memory deduper) --- Memory de-duplication instructions You have kernel memory de-duper (called Kernel Same-page Merging, or KSM) available, but it is not currently enabled. To enable it run: echo 1 >/sys/kernel/mm/ksm/run echo 1000 >/sys/kernel/mm/ksm/sleep_millisecs If you enable it, you will save 40-60% of netdata memory. --- Check version.txt --- --- Check apps.plugin --- --- Basic netdata instructions --- netdata by default listens on all IPs on port 19999, so you can access it with: http://your-ip-address:19999/ To stop netdata run: systemctl stop netdata To start netdata run: systemctl start netdata --- We are done! ---
安装后,应自动启动Netdata服务:
sudo systemctl status netdata
步骤3.为Netdata配置防火墙。
在访问Netdata的Web界面之前,您需要修改防火墙规则,以允许端口19999(Netdata的默认通信端口)上的通信:
sudo firewall-cmd --permanent --zone=public --add-port=19999/tcp sudo firewall-cmd --reload
步骤4.访问Netdata Web界面。
默认情况下,Netdata将在HTTP端口19999上可用。打开您喜欢的浏览器,然后浏览至或http://your-domain.com:19999
http://server-ip-address:19999
恭喜你!您已经成功安装了Netdata。感谢您使用本教程在CentOS 8系统上安装Netdata实时性能监视工具。有关其他帮助或有用信息,我们建议您检查Netdata官方网站。
原创文章,作者:校长,如若转载,请注明出处:https://www.yundongfang.com/Yun41157.html