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