Swoole Asynchronous Redis Installation

Source: Internet
Author: User

Asynchronous Redis Client for Swoole
One, install Hiredis
wget https://github.com/redis/hiredis/archive/v0.13.3.tar.gz
Make it directly and install it.
is to put the relevant header file in the appropriate directory.

Second, upgrade the Swoole version to 1.8.0
GitHub Address:
git clone https://github.com/swoole/swoole-src.git
or tar.gz bag.
wget https://github.com/swoole/swoole-src/archive/swoole-1.8.0-stable.tar.gz

Direct decompression
Phpize
Add Enable-async-redis when editing
./configure--prefix=/usr/local/swoole/--enable-async-mysql--enable-openssl--enable-async-redis
Make && make install

If this is a new installation, follow the steps below:
If successful, the generated extension directory is output:
Installing Shared extensions:/data/server/php/lib/php/extensions/no-debug-non-zts-20100525/

Add extension= ' swoole.so ' to the php.ini

Restarting Ng and PHP-FPM


PHP--ri swoole View, upgrade/install successful

  

Swoole Asynchronous Redis Installation

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.