nginx环境下的cacti配置
以前安装过apache和cacti的环境,但是现在的服务器直接采用的nginx,所以只能在nginx环境中配置cacti。1、安装snmp#yum -y install net-snmp net-snmp-devel net-snmp-libs net-snmp-utils 安装rrdtool#yum -y install rrdtool2、下载cacti最新版#cd /soft/#wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz解压# tar -zxvf cacti-0.8.8a.tar.gz# mv cacti-0.8.8a /var/www/#cd /var/www/#mv cacti-0.8.8a cacti3.修改nginx配置location /cacti { root /var/www/cacti; indexindex.php; }
mysql数据库添加用户grant all on cacti.* to cactiuser@localhost identified by 'cactipass';
出现错误
date(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Asia/Chongqing’ for ‘CST/8.0/no DST’ instead解决办法,在php.ini里加上date.timezone = "Asia/Shanghai"
站的更高,尿的更远。 走过了年少,脚起了水泡 天塌下来你顶着,我垫着! 过来看看的 我是来刷分的,嘿嘿 关羽五绺长髯,风度翩翩,手提青龙偃月刀,江湖人送绰号——刀郎。
页:
[1]