2017-12-13 经验分享 手工安装redis、ioncube、memcached常用组件 1234567891011121314151617181920212223242526272829303132333435363738394041421、安装redis服务yum -y install redis2、安装php组件wget http://pecl.php.net/get/redis-3.1.0.tgztar xzf redis-3.1.0.tgzcd redis-3.1.0/usr/local/php56/bin/phpize./configure --with-php-config=/usr/local/php56/bin/php-configmake && make installcat /usr/local/php56/etc/php.d/ext-redis.ini << EOFextension=redis.soEOF1、安装ioncube组件cd `/usr/local/php56/bin/php-config --extension-dir`wget http://download.myhostadmin.net/php/ioncube/ioncube_loader_lin_5.6.socat /usr/local/php56/etc/php.d/ext-ioncube.ini << EOF[ioncube]zend_extension=ioncube_loader_lin_5.6.soEOF1、安装memcached服务yum -y install memcached修改为127.0.0.1运行cat /etc/sysconfig/memcached << EOFPORT="11211"USER="memcached"MAXCONN="1024"CACHESIZE="256"OPTIONS="-l 127.0.0.1"EOFsystemctl restart memcached2、安装memcached组件wget http://pecl.php.net/get/memcache-2.2.5.tgztar xzf memcache-2.2.5.tgzcd memcache-2.2.5/usr/local/php56/bin/phpize./configure --enable-memcache --with-php-config=/usr/local/php56/bin/php-config --with-zlib-dirmake && make installcat /usr/local/php56/etc/php.d/ext-memcache.ini << EOFextension=memcache.soEOF Newer Shell中的${}、##和%%使用范例 Older Linux shell `` '' \"\" 字符含义