Cacti monitoring and memcached database with Yum installed lamp environment

Source: Internet
Author: User
Tags install php memcached

Today I tested yum install lamp and cacti monitor/control has memcached database

First introduce my system environment centos6.7 x86-64

1 installing cacti

Yum Install cacti

Installing the cacti will automatically install the lamp environment,


2 Next is the installation procedure for memcached

Yum install-y epel-release--install Epel extension source with memcached libmemcached package available

Yum install-y libevent memcached libmemcached
/etc/init.d/memcached Start
[[email protected] ~]# PS aux |grep memcached
498 5101 0.0 0.3 332892 3076? SSL 21:54 0:00 memcached-d-P 11211-u memcached-m 64-c 1024-p/var/run/memcached/memcached.pid
memcached Service Normal enable 11211 ports
--You can define the relevant parameters at/etc/init.d/memcached and/etc/sysconfig/memcached
View Status
[email protected] ~]# Memcached-tool 127.0.0.1:11211 stats
telnet 127.0.0.1 11211 Test memcached Library Connection


3PHP connection memcached

Installing the Memcache Extension

Cd/usr/local/src

wget http://www.lishiming.net/data/attachment/forum/memcache-2.2.3.tgz

Tar zxf memcache-2.2.3.tgz

CD memcache-2.2.3

There is also a need to use two instructions to phpize and Php-config

So yum install Php-devel

In this case, the Yum installation instructions are under/usr/bin/and the PHP module directory is the corresponding/usr/lib/php/under the/usr/lib64/php/32-bit

Phpize

./configure--with-php-config=/usr/bin/php-config

After installation, there will be a hint like this installing shared extensions:/usr/lib64/php/modules/memcache.so

Then modify the/etc/php.ini to change Extension_dir = "./" revision to

Extension_dir = "/usr/lib64/php/modules/"

and add a line below extension = "memcache.so"

Save exit using Php-m |grep memcache can see that PHP has loaded the Memcache

This article is from the "10999243" blog, please be sure to keep this source http://11009243.blog.51cto.com/10999243/1758952

Cacti monitoring and memcached database with Yum installed lamp environment

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.