ib --with-z-lib=/www/zlig/lib
[root@localhost mrtg-2.16.4]# make
[root@localhost mrtg-2.16.4]# make install
snmp的安装
[root@localhost mrtg-2.16.4]# rpm -vih /iso/Server/lm_sensors-devel-2.10.7-4.el5.i386.rpm
[root@localhost mrtg-2.16.4]# rpm -vih /iso/Server/net-snmp-5.3.2.2-5.el5.i386.rpm
[root@localhost ~]# rpm -vih /iso/Server/net-snmp-utils-5.3.2.2-5.el5.i386.rpm
[root@localhost mrtg-2.16.4]# vi /etc/snmp/snmpd.conf
access notConfigGroup "" any noauth exact systemview none none这个这行改成下面这样
access notConfigGroup "" any noauth exact all all none
#view all included .1 80
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
改成下面这样.
view all included .1 80
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
[root@localhost mrtg-2.16.4]# /etc/init.d/snmpd restart
Stopping snmpd: [FAILED]
Starting snmpd: [ OK ]
[root@localhost ~]# snmpwalk -v 1 -c public 192.168.11.11 IP-MIB::ipAdEntIfIndex
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.192.168.1.153 = INTEGER: 3
IP-MIB::ipAdEntIfIndex.192.168.11.11 = INTEGER: 2
[root@localhost ~]# netstat -tuln|grep 161
拥有帝国一切,皆有可能。欢迎访问phome.net
udp 0 0 0.0.0.0:161 0.0.0.0:*
说明SNMP成功的,并且能获得192.168.11.11的mib信息.
[root@localhost ~]# mkdir /www/httpd/htdocs/mrtg 这个是用与存放mrtg的网页
[root@localhost bin]# mkdir /www/mrtg/etc 这个是用于存放mrtg的配置文件.
下面是生成配置文件.
[root@localhost bin]# ./cfgmaker --global "WorkDir:/www/httpd/htdocs/mrtg" -global "Options[_]:growright,bits" -ifref=ip --output /www/mrtg/etc/mrtg.cfg
public@192.168ncurses的安装
[root@localhost ~]# tar zxvf /mnt/ncurses-5.7.tar.gz -C /tmp
[root@localhost ~]# cd /tmp/ncurses-5.7/
[root@localhost ncurses-5.7]# ./configure --prefix=/www/ncurses --with-shared
** Configuration summary for NCURSES 5.7 20081102:
extended funcs: yes
xterm terminfo: xterm-new
bin directory: /www/ncurses/bin
lib directory: /www/ncurses/lib
include directory: /www/ncurses/include/ncurses
man directory: /www/ncurses/man
terminfo directory: /www/ncurses/share/terminfo
** Include-directory is not in a standard location
[root@localhost ncurses-5.7]# make
[root@localhost ncurses-5.7]# make install
httpd的安装
[root@localhost ncurses-5.7]# tar zxvf /mnt/httpd-2.2.9.tar.gz -C /tmp
[root@localhost ncurses-5.7]# cd ../httpd-2.2.9/
[root@localhost httpd-2.2.9]# ./configure --prefix=/www/httpd --enable-modules=all --enable-so --enable-cache --enable-disk-cache --enable-mem-cache --enable-file-
cache --enable-proxy --enable-proxy-http --enable-proxy-ftp --enable-proxy-ajp --enable-proxy-balancer --with-mpm=worker --enable-mods-shared=all --enable-static-ab
--enable-cgi --enable-rewrite
make[4]: Leaving directory `/tmp/httpd-2.2.9/modules/mappers''
make[3]: Leaving directory `/tmp/ |