FreeBSD 6.2-BETA2 WebServer架设总结

http://tech.ddvip.com   2008年01月21日    社区交流

内容摘要:如果您要是装FreeBSD 6.2-BETA2 似乎已经很安全稳定的了.就没有必要花二三个小时去重新编译吧.起码安装WEBserver不用.只要您把安全做好.我认为利用系统漏洞入侵您的服务器不太可能..有必要的时候再重新编译..

  //打开http://vhost.stuhack.com

  //会显示 Vhost.stuhack.com

  No.16 MRTG 流量分析

  //安装MRTG 可谓艰难.查了好多资料.也走了很多弯路.一步一步走出来的..

  //在安裝 MRTG 之前,我们先使用 ports 來安装 SNMP:

  #cd /usr/ports/net-mgmt/net-snmp

  #make install clean

  #cd /usr/local/share/snmp

  #cp snmpd.conf.example snmpd.conf

  #ee /usr/local/share/snmp/snmpd.conf

  //添加以下内容

  view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc

  rocommunity  mrtg

  syslocation  Office

  syscontact   stuceo@stuhack.com

  #/usr/local/etc/rc.d/snmpd start

  #netstat -an

  udp4    0   0 *.161           *.*

  //接着ports 來安裝 MRTG:

  #cd /usr/ports/net-mgmt/mrtg

  #make install clean

#################################################
# Please create a MRTG config file in /usr/local/etc/mrtg                     #
# A configuration file can be automatically generated with cfgmaker        #
# A sample configuration file is installed as mrtg.cfg.sample                 #
#                                                                              #
# To enable MRTG in daemon mode, put the following to your /etc/rc.conf or #
# /etc/rc.conf.local file:                                                        #
#   mrtg_daemon_enable="YES"                                           #
#################################################

作者:Stuhack    责编:豆豆技术应用

正在加载评论...