安裝前一定要確認可連接Internet,安裝過程中會自動下載安裝元件
安裝指令:
=======================================================================
先安裝RRDTool:
yum -y install gcc cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel
cd /opt/
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.2.tar.gz
tar zxvf rrdtool-1.4.2.tar.gz
cd rrdtool-1.4.2
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
./configure
make
make install
ln -s /opt/rrdtool-1.4.2 /usr/local/rrdtool
cd /opt/
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.2.tar.gz
tar zxvf rrdtool-1.4.2.tar.gz
cd rrdtool-1.4.2
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
./configure
make
make install
ln -s /opt/rrdtool-1.4.2 /usr/local/rrdtool
驗證:
cd /usr/local/rrdtool/share/rrdtool/examples/
./stripes.pl
ls -l
cp stripes.png /var/www/html/
yum -y install httpd
service httpd start
firefox http://此server的IP位址/stripes.png &
./stripes.pl
ls -l
cp stripes.png /var/www/html/
yum -y install httpd
service httpd start
firefox http://此server的IP位址/stripes.png &
=======================================================================
NTOP安裝:
#yum -y install gcc gcc-c++ libpcap-devel libpcap libtool automake
autoconf gdbm gdbm-devel libevent libevent-devel rrdtool rrdtool-devel
zlib zlib-devel GeoIP GeoIP-devel
yum -y install gcc gcc-c++
libpcap-devel libpcap libtool automake autoconf gdbm gdbm-devel
libevent libevent-devel rrdtool rrdtool-devel zlib zlib-devel
rpm -Uvh http://pkgs.repoforge.org/geoip/geoip-1.4.6-1.el6.rf.i686.rpm
rpm -Uvh http://pkgs.repoforge.org/geoip/geoip-devel-1.4.6-1.el6.rf.i686.rpm
wget http://sourceforge.net/projects/ntop/files/ntop/Stable/ntop-4.1.0.tar.gz/download
tar -zxvf ntop-4.1.0.tar.gz
cd ntop-4.1.0
./autogen.sh
make
make install
#make install-selinux-policy
#disable SELinux now
/usr/sbin/setenforce 0
useradd -M -s /sbin/nologin -r ntop
chown -R ntop:root /usr/local/var/ntop/
chown -R ntop:ntop /usr/local/share/ntop/
ntop -A
/usr/local/bin/ntop -d -L -u ntop -P /usr/local/var/ntop --skip-version-check --use-syslog=daemon
# or
#/usr/local/bin/ntop -i "eth0" -d -L -u ntop -P /usr/local/var/ntop --skip-version-check --use-syslog=daemon
firefox http://localhost:3000/ &(安裝完成後的測試)設定開機自動啟動:
vi /etc/rc.local
加入這一行==>/usr/local/bin/ntop -i "eth0" -d -L -u ntop -P /usr/local/var/ntop --skip-version-check --use-syslog=daemon
小弟是參考此網站:
沒有留言:
張貼留言