天天看点

windows下cacti安装配置

下载cacti windows installer

http://forums.cacti.net/viewtopic.php?f=3&t=14946

这个是集成安装包,基本配置已经自动完成,打打地减少了配置的工作量和出错的几率。

1.安装好后,apache是可以用的,可以执行测试网页,但localhost/cacti会无响应,还要执行以下指令:

点击(此处)折叠或打开

c:\> mysql -u root -p cacti

GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactipw';

FLUSH PRIVILEGES; 

exit

2.完成后,配置snmp:

在net-snmp\etc\snmp下新建snmpd.conf 并写入 rocommunity public

注册服务:执行registeragent.bat

重启服务:net stop "net-snmp agent"

  net stop "net-snmp agent"

3.如果需要用netbeans调试,则去http://xdebug.org/wizard.php下载xdebug文件放入ext,并在php.ini中加入以下几行:

zend_extension = PHPdir\php\ext\php_xdebug-2.2.0-5.3-vc9.dll

xdebug.remote_enable = on

xdebug.remote_handler = dbgp

xdebug.remote_host = localhost

xdebug.remote_port = 9001

完后重启apache,有时候很诡异,要重启电脑~~!

完后大功告成。