Environment: CentOS6.5 minimal target: Install Ganglia Core Components (gmond, gmetad, gmetric, gstat, libganglia), Ganglia web
Prepare yum to add epel source rpm-Uvh ready remi source rpm-Uvh http://rpms.famillecollet.com/#ise/remi-release-6.rpmdownload http://ganglia.info/
Install the dependency package yum install gcc apr-devel libconfuse-devel expat-devel pcre-devel-y. install gmetad yum install rrdtool-devel-y if you need to install gweb yum install rsync-y
Install gmond tar-zxvf ganglia-3.6.0.tar.gz cd ganglia-3.6.0/./configure make & make install gmetad./configure -- with-gmetad make & make install
Configure gmond and gmetad services cp gmetad/gmetad. init/etc/init. d/gmetad chkconfig -- add gmetad
Cp gmond/gmond. init/etc/init. d/gmond chkconfig -- add gmond
Modify vim/etc/init. d/gmond as follows (find/= name 'gmond 'for search): gmond =/usr/local/sbin/GMOND
Modify vim/etc/init. d/gmetad as follows (find/= name 'gmetad' for search): gmetad =/usr/local/sbin/GMETAD
For easy maintenance, modify the configuration path: mkdir-p/etc/ganglia ln-s/usr/local/etc/gmetad. conf/etc/ganglia/gmetad. conf gmond-t>/usr/local/etc/gmond. conf ln-s/usr/local/etc/gmond. conf/etc/ganglia/gmond. conf install PHP PHP5.3 yum install php-fpm php-common php-devel php-mysqlnd php-mbstring php-mcrypt-y
Php 5.5 yum -- enablerepo = remi, remi-php55 install php-fpm php-common php-devel php-mysqlnd php-mbstring php-mcrypt
Install one
Chkconfig php-fpm on
Install Nginx yum install nginx-y chkconfig nginx on
Nginx configuration php cd/etc/nginx/conf. d/mv default. conf defalut. conf. orig vim/etc/nginx/conf. d/defalut. conf Add the following code:
Location ~ \. Php $ {root/var/www;
Fastcgi_pass 127.0.0.1: 9000;
Fastcgi_index index. php;
Fastcgi_param SCRIPT_FILENAME $ document_root/$ fastcgi_script_name;
Include fastcgi_params;
}
Start service gmond start service gmetad start service php-fpm start service nginx start
Test PHP + Nginx cd/var/www vim test. php
<? Php
Phpinfo ();
?> Access: http // <php server ip>/test. php. If the following interface appears, debugging is successful.
Install Ganglia Web tar-zxvf ganglia-web-3.5.12.tar.gz cd ganglia-web-3.5.12/vim Makefile
GDESTDIR =/var/www/ganglia
APACHE_USER = apache # make install consistent with the user in/etc/php-fpm.d/www. conf
Nginx adds ganglia file directory access configuration vim/etc/nginx/conf. d/defalut. conf
Location/ganglia {
Root/var/www;
Index index.html index.htm index. php;
}
Cd/var/www chown apache: apache ganglia/
Mkdir-p/var/lib/ganglia/rrds chown nobody: nobody/var/lib/ganglia/rrds access Ganglia Web http: // <ganglia server ip>/ganglia displays the following interface:
(End)