下載下傳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,有時候很詭異,要重新開機電腦~~!
完後大功告成。