您好,登錄后才能下訂單哦!
php模塊安裝
注:如果沒有phpize,這樣安裝: # yum install php-devel 一、使用pecl安裝 # wget http://pear.php.net/go-pear.phar # php go-pear.phar php模塊和對應的服務的安裝 增加php模塊: memcache: libmemcached-devel imagick: ImageMagick-devel gearman: libgearman-devel sphinx: libsphinxclient-devel redis: hiredis-devel 1)使用pecl安裝模塊 示例: 【memcache】 # yum install libmemcached-devel # pecl install memcache 【imagick】 # yum install ImageMagick-devel # pecl install imagick 【gearman】 # yum install libgearman-devel # pecl install gearman 【sphinx】 # yum install libsphinxclient-devel # pecl install sphinx 【redis】 # yum install hiredis-devel # pecl install redis 二、編譯安裝 示例: 【memcached】 # yum install libmemcached-devel ============ php插件memcache # wget http://pecl.php.net/get/memcache -O memcache-3.0.8.tar.gz # tar zxvf memcache-3.0.8.tar.gz && cd memcache-3.0.8/ # /usr/local/php/bin/phpize # ./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config # make && make install # cd .. 【ImageMagick】 # yum install ImageMagick-devel ============ php插件imagick # wget http://pecl.php.net/get/imagick -O imagick.tar.gz # tar zxvf imagick.tar.gz && cd imagick-3.3.0RC1/ # /usr/local/php/bin/phpize # ./configure --with-php-config=/usr/local/php/bin/php-config # make && make install # cd .. 【gearmand】 安裝gearmand # yum -y install libgearman-devel ============ php插件gearman # wget http://pecl.php.net/get/gearman-1.1.2.tgz # tar zxvf gearman-1.1.2.tgz && cd gearman-1.1.2 # /usr/local/php/bin/phpize # ./configure --with-php-config=/usr/local/php/bin/php-config # make && make install # cd ..
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。