Online installation ganglia3.6.0,nginx+php build Gweb, absolutely through

Source: Internet
Author: User
Tags config php mcrypt php server

Environment: CentOS6.5 Minimal target: Install gangliaCore Components (Gmond, Gmetad, Gmetric, Gstat, Libganglia), Ganglia web
PrepareYum joins Epel source RPM-UVH http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmYum JoinRemi Source    RPM-UVH http://rpms.famillecollet.com/enterprise/remi-release-6.rpm Download    http://ganglia.info/ 
Install dependent packagesYum install gcc Apr apr-devel libconfuse libconfuse-devel expat-devel pcre pcre-devel–y If you need to install Gmetad yum Install RR Dtool Rrdtool-devel-y IfneedInstalling Gweb    Yum Install Rsync-y
Installing GmondTAR-ZXVF ganglia-3.6.0.tar.gzCDganglia-3.6.0/    ./configure make && make installInstalling Gmetad    ./configure--with-gmetad make && make install
configuring Gmond, GmetadService    CP Gmetad/gmetad.init/etc/init.d/gmetadChkconfig--add Gmetad
    CP Gmond/gmond.init/etc/init.d/gmond Chkconfig--add Gmond
    Vim/etc/init.d/gmondModify the following (Find/=name ' Gmond ' search):    Gmond=/usr/local/sbin/gmond
    Vim/etc/init.d/gmetadModify the following (Find/=name ' Gmetad ' search):    Gmetad=/usr/local/sbin/gmetad
for ease of 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 PHPPHP5.3    Yum Install php-fpm php-common php-devel php-mysqlnd php-mbstring php-mcrypt-y
PHP5.5    Yum--enablerepo=remi,remi-php55 install php-fpm php-common php-devel php-mysqlnd php-mbstring php-mcrypt
Install one can
    Chkconfig PHP-FPM on
Installing NginxYum Install nginx-y    Chkconfig Nginx on
nginx config phpcd/etc/nginx/conf.d/MV default.conf Defalut.conf.origVim/etc/nginx/conf.d/defalut.confAdd the following code: Location~\.php$ {Root/Var/www
Fastcgi_pass127.0.0.1:9000;
Fastcgi_index index.php;
Fastcgi_param script_filename $document _root/$fastcgi _script_name;
Include Fastcgi_params;
}
Start the serviceService Gmond StartService Gmetad StartService PHP-FPM Start    Service Nginx Start
Test Php+nginxCD/var/wwwVim test.php <?Php
Phpinfo ();
?>        Visit:http//<PHP Server IP>/test.php, the following interface appears for debugging success    
Install ganglia WebTAR-ZXVFganglia-web-3.5.12.tar.gzCDganglia-web-3.5.12/    Vim Makefile Gdestdir=/Var/Www/Ganglia
Apache_user=Apache# Consistent with user in/etc/php-fpm.d/www.confMake Install
nginx Add 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/wwwChownApache:apache ganglia/
    mkdir-p/var/lib/ganglia/rrds    chown nobody:nobody/var/lib/ganglia/rrds    access the Ganglia Web    http://<ganglia server IP >/gangliaThe following interface is rendered:
Finish

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.