Memcache and Redis Server build-up

Source: Internet
Author: User
Tags fpm memcached redis server

ready to work: Open the Putty tool and enter the following command after entering the Linux system login and modify the relevant content Memcache Installation (line-by-row execution): yum-y Install memcached /etc/rc.d/init.d/memcached Start cd/usr/local/src/ wget https://launchpad.net/libmemcached/1.0/1.0.16/+download/libmemcached-1.0.16.tar.gz TAR-ZXVF libmemcached-1.0.16.tar.gz CD libmemcached-1.0.16 ./configure-prefix=/usr/local/libmemcached-with-memcachedMake && make install Yum Install Php-devel wget http://pecl.php.net/get/memcached-2.1.0.tgz TAR-ZXVF memcached-2.1.0.tgz CD memcached-2.1.0 /usr/local/php/bin/phpize ./configure-enable-memcached-with-php-config=/usr/local/php/bin/php-config-with-zlib-dir- With-libmemcached-dir=/usr/local/libmemcached-prefix=/usr/local/phpmemcachedMake && make install Vi/usr/local/php/lib/php.ini /usr/local/nginx/sbin/nginx-s Reload /etc/init.d/php-fpm RestartWindowsinstallation under SystemMemcacheExtended:: http://windows.php.net/downloads/pecl/releases/Unzip to findPhp_memcache.dllcopy and paste the file intoC:\wamp\bin\php\php5.4.3\extunder; Modify C:\wamp\bin\apache\apache2.2.22\binunder theInifile Extension=php_memcache.dll;

Redisinstallation (line-by-row execution):

Yum install TCL cd/usr/local/src wgethttp://download.redis.io/redis-stable.tar.gzTar xzvf redis-stable.tar.gz cd redis-stable make make Install/usr/local/src/redis-stable/src/redis-server &Notes):DetectionRedis Service Ps-ef | grep Redis cd/usr/local/src wgethttps://github.com/nicolasff/phpredis/archive/2.2.4.tar.gzTAR-ZXVF 2.2.4.tar.gz cd phpredis-2.2.4//usr/local/php/bin/phpize./configure--with-php-config=/usr/local/php/bin/ Php-config make && make install Vi/usr/local/php/lib/php.iniNotes):add a new extensionRedis.so/usr/local/nginx/sbin/nginx-s reload/etc/init.d/php-fpm Restart Windowsinstallation under SystemRedisExtended:

: http://windows.php.net/downloads/pecl/releases/Unzip to findPhp_redis.dllcopy and paste the file intoC:\wamp\bin\php\php5.4.3\extunder; Modify C:\wamp\bin\apache\apache2.2.22\binunder theInifileExtension=php_redis.dll;

Memcache and Redis Server build-up

Related Article

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.