- 安裝 netdata ,以利系統監控!
-
系統事先安裝相關套件:
# yum install epel-release # 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 取得 netdata 套件:
# cd /opt # git clone https://github.com/firehol/netdata.git --depth=1
-
利用 netdata 套件中的安裝程式,進行軟體編譯與安裝:
# cd netdata # ./netdata-installer.sh
- 安裝 netdata 套件過程中,可指定安裝目錄: 按下Enter,就會按照上述設定,進行安裝工作!
-
開啟 Kernel 的 KSM 功能:
# echo 1 >/sys/kernel/mm/ksm/run # echo 1000 >/sys/kernel/mm/ksm/sleep_millisecs
-
開啟防火牆設定:
# firewall-cmd --permanent --add-port=19999/tcp # firewall-cmd --reload
- 打開瀏覽器,輸入IP位置以及 19999 port: http://127.0.0.1:19999
-
啟動與關閉 Netdata 服務:
# systemctl start netdata # systemctl stop netdata
參考文獻:
- https://github.com/firehol/netdata/wiki/Installation
- http://blog.itist.tw/2017/05/real-time-performance-monitoring-with-netdata-on-raspberry-pi.html
- https://www.digitalocean.com/community/tutorials/how-to-set-up-real-time-performance-monitoring-with-netdata-on-ubuntu-16-04