Mac installs Php-redis extension for php7.0

Source: Internet
Author: User

Note: Operating system 10.13.3, other versions of the Mac system should also be available

  1. Install first
    Execute the following command at the command line in order, and if the current user has insufficient permissions, execute the command with sudo

    cd /usr/local/Cellar    //我是安装到Cellar目录下了git clone https://github.com/phpredis/phpredis.git cd phpredis phpize //phpize是用来扩展php扩展模块的,通过phpize可以建立php的外挂模块 make //编译程序 make install
  2. Configuring extensions
    In the PHP configuration file (My computer's php.ini under/usr/local/etc, depending on the situation) plus

    extension=redis.so
  3. Restart the server and use the Php_info () function to see if PHP supports Redis extensions

This article references: 76945298
If you want to reprint, please specify the source: http://www.cnblogs.com/zhuchenglin/p/8858614.html

Mac installs Php-redis extension for php7.0

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.