linux篇-Parse error: syntax error, unexpected ‘new’ (T_NEW) in /usr/local/nginx/html/cacti/lib/adodb
1首先这是基于lnmp模式进行的
2yum安装
yum -y install httpd mysql mysql-server php php-mysql php-json php-pdo
3lib库
yum -y install cairo-devel libxml2-devel pango pango-devel
4 解压rrdtool-1.3.1.tar.gz
Cd rrdtool-1.3.1
./configure --prefix=/usr/local/rrdtool/
Make
Make install
ln -s /usr/local/rrdtool/bin/* /usr/local/bin/
5rrdtool
6安装snmp
yum -y install net-snmp net-snmp-utils -y
7安装
解压 并安装
放在/usr/local/nginx/html下
grant all privileges on . to cacti@’%’ identified by ‘123456’;
cd /usr/local/nginx/html/cacti
chmod -R 777 rra
chmod -R 777 log
8修改include/config.php
9yum -y install vixie-crons crontabs计划任务
Cronttab -e编辑
*/5 * * * * /usr/local/bin/ /var/local/nginx/html/cacti/poller.php>>/tmp/cacti_rrdtool.log
10最后报了个错,下节讲述如何正确的配置cacti环境,我一开始理解错了,以为是nginx和mysql和php就好了,最后以报错结束。
Parse error: syntax error, unexpected ‘new’ (T_NEW) in /usr/local/nginx/html/cacti/lib/adodb/adodb.inc.php on line 866