memcached command Line
memcached Data Import and export
PHP link memcached
Install the PHP memcache extension first
cd/usr/local/src/
Wget? http://www.apelearn.com/bbs/data/attachment/forum/memcache-2.2.3.tgz
Tar zxf memcache-2.2.3.tgz?
CD memcache-2.2.3
/usr/local/php-fpm/bin/phpize
./configure--with-php-config=/usr/local/php-fpm/bin/php-config
Make && make install
After installation, there will be a hint like this: Installing Shared extensions:/usr/local/php-fpm/lib/php/extensions/no-debug-non-zts-20131226/
Then modify php.ini add a line extension= "memcache.so"
Check/usr/local/php/bin/php-fpm-m
Download Test Scripts
Curl Www.apelearn.com/study_v2/.memcache.txt > 1.php 2>/dev/null
1.php content can also refer to https://coding.net/u/aminglinux/p/yuanke_centos7/git/blob/master/21NOSQL/1.php
Execute script
/usr/local/php-fpm/bin/php 1.php
Or put 1.php into a virtual host root directory, in the browser access, you can see the effect
Finally, you can see the following data:
[0] = AAA
[1] = BBB
[2] = = CCC
[3] = DDD
Store session in Memcached
memcached command line memcached data import and export PHP links memcached Memcach