Install Ganglia3.6.0 online and set up gweb with nginx + php.

Source: Internet
Author: User
Tags configuration php mcrypt

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 MakefileGDESTDIR =/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. confLocation/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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.