System Environment: CentOS 5.5
Install all software using yum. 1. When installing Nginx to compile PHP, check whether the -- enable-sock parameter is added. After installation: cd/usr/binln-s/usr/local/php/bin/php 2. To install rrd and snmp, add the yum source first, otherwise, Yum won't get what we want. vi/etc/yum. repos. d/CentOS-Base.repo [dag] name = Dag RPM Repository for Red Hat Enterprise Linux baseurl = export gpgcheck = 1 gpgkey = http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt enabled = 1 then yum something we want yum-y install php -snmp net-snmp-libs ne T-snmp-utils rrdtool 3. Configure snmpd. Both the invigilator and the invigilator must be configured. PS: use the new version of the source code package for installation. The configuration files are different. You can use the configuration files of the old yum package. Original configuration: com2secnotConfigUser default publicaccess notConfigGroup "" any noauth exact systemview none # view all included. 1 80 changed to: com2secnotConfigUser 127.0.0.1 public #127.0.0.1. access notConfigGroup "" any noauth exact all none noneview all encoded. 1 80 startup service: service snmpd start 4. Install cacti tar zxvf cacti-0.8.7g.tar.gzmv cacti-0.8.7g/home/www/cacti to create database and import cacti SQL, and authorize cacti user mysql -Uroot-p123456-e "create database cacti;" mysql-uroot-p123456-e "grant all privileges on cacti. * TO cacti@127.0.0.1 identified by cacti; "mysql-uroot-p123456 cacti
[1] [2] Next page