偶然間在知乎看到了Netdata這個東西 看到它華麗的界面python
頓時心動 gkd gkdgit
#準備 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 #設置開機啓動 cp system/netdata-init-d /etc/init.d/netdata chmod +x /etc/init.d/netdata chkconfig --add netdata
短短几行代碼就搞定了
github
如今訪問http://ip:19999就能夠看到華麗的頁面了^_^curl
若是防火牆19999端口沒開的話須要按下面命令打開:tcp
#打開端口 firewall-cmd --zone=public --add-port=19999/tcp --permanent #重啓防火牆 firewall-cmd --reload #查看端口號是否開啓 firewall-cmd --query-port=19999/tcp