Mac Getting Started - Installing PHP extensions redis, swoole

1 php7 the following PHP extensions can be installed through pecl

Extended install redis

pecl install redis

Installation swoole extension

peel install swoole

 

By more than 2 PHP7 source compiler mounting extension

 

2.1 Extended installation package to find a link on the official website address: http: //pecl.php.net

2.2.1 official website direct download uploaded on the server unzip

2.2.2 By wget to download, if not installed wget installed directly brew install wget by homebrew

http://pecl.php.net/get/redis-5.0.0.tgz

2.2.3 by downloading curl, you need to specify the output file name parameter, no argument will fail garbled

curl -O php-redis-5.tgz http://pecl.php.net/get/redis-5.0.0.tgz

 

2.3 Specific extract the download link below to view the following redis extension case (swoole empathy)

https://www.cnblogs.com/jingxiaoniu/p/6746073.html

2.4.1 View phpinfo by restarting PHP (), you can see redis module, if it is apache service, then the service should restart apache to see

2.4.2 or directly execute php -m to see if the installation

 

That's all for this time!

Guess you like

Origin www.cnblogs.com/jingxiaoniu/p/11125844.html