Centos安裝Netdata

前言

在網上看到這個開源項目,當時正好在本身的阿里雲服務器安裝一些其它的應用,由於服務器配置比較低,因此常常系統資源耗盡,遂安裝了一個Netdata,不得不說的是,這個東東,監控的項目真的不少。 python

軟件截圖

介紹

Netdata 是一個高度優化的 Linux 守護進程,它爲 Linux 系統,應用程序,SNMP 服務等提供實時的性能監測。nginx

環境

CentOS Linux release 7.2.1511git

準備

yum install autoconf automake curl gcc git libmnl-devel libuuid-devel lm_sensors make MySQL-python nc pkgconfig python python-psycopg2 PyYAML zlib-devel
複製代碼

安裝

git clone https://github.com/firehol/netdata.git --depth=1
cd netdata
./netdata-installer.sh # 執行腳本成功後,netdata會當即啓動。若是不但願當即啓動,加入--dont-start-it
複製代碼

設置開機啓動

# copy the netdata startup file to /etc/init.d
cp system/netdata-init-d /etc/init.d/netdata
 # make sure it is executable
chmod +x /etc/init.d/netdata
 # enable it
chkconfig --add netdata
複製代碼

好的,這樣就應該安裝成功了,按照默認安裝的話,Netdata已經自動啓動了,監聽在19999端口,經過瀏覽器中輸入:http://你的IP地址:19999訪問。注意:記得把19999端口開放防火牆。github

更新#

2017.07.28更新#

這貨竟然還能夠監控nginx服務shell

nginx

更多功能,期待你去發現。瀏覽器

相關文章
相關標籤/搜索