当前位置:网站首页>Compiling and installing phpredis extension on MAC
Compiling and installing phpredis extension on MAC
2022-06-26 04:22:00 【Scholar and】
Installation steps :
1: download phpredis
Download address :【https://pecl.php.net/package/redis】, Select the required extended version
2: Unzip and download the installation package , And unzip it to get the folder redis-3.1.1RC2( The version I downloaded )
3: Open the command line tool , Enter into redis-3.1.1RC2 Under the table of contents
4: Carry out orders
sudo /Applications/MAMP/bin/php/php7.2.22/bin/phpize
(php The absolute path of the directory where the environment is located )
5: Carry out orders
sudo ./configure --with-php-config=/Applications/MAMP/bin/php/php7.2.22/bin/php-config
sudo make
sudo make install
Finally, the output is successful :
Installing shared extensions: /Applications/MAMP/bin/php/php7.2.22/lib/php/extensions/no-debug-non-zts-20170718/
Under the above folder , Will generate redis.so file
6: find phpinfo Point to the php.ini file
7: stay php.ini New extension in file
extension=redis.so
notes : Make sure that redis.so Location and extension_dir Pointing to the directory is consistent
8: restart php
9: restart nginx
remarks : If it is an old project that is pulled from the online or copied to the local , Best to confirm phpinfo in redis Extended version number , The compiled version shall be consistent with the online version number , Otherwise, compatibility problems may occur ,
边栏推荐
- Detailed explanation of widget construction process of fluent
- [从零开始学习FPGA编程-45]:视野篇 - 集成电路助力数字化时代高质量发展-2-市场预测
- Microsoft prohibits Russian users from downloading and installing win10/11
- Fastadmin always prompts sqlstate[23000]: integrity constraint violation: 1052 column 'ID' in order clause is am
- Parse JSON interface and insert it into the database in batch
- Simple personal summary of tp6 multi application deployment -- Part I [original]
- MySQL's built-in performance testing tool, mysqlslap, performs stress testing
- CTF PHP audit bypasses filtering learning from topics
- 解析JSON接口并批量插入到数据库中
- SQL related knowledge - constraints
猜你喜欢
TP5 distinct method paging problem
[Qunhui] this suite requires you to start PgSQL adapter service
Minecraft 1.16.5 biochemical 8 module 1.9 version 1.18 version synchronization
How does virtual box virtual machine software accelerate the network speed in the virtual system?
35岁程序员炒Luna 千万资产3天归零,网友:和赌博一样
[QT] resource file import
Verrouillage de lecture et d'écriture pour la synchronisation des fils
Minecraft 1.16.5 生化8 模组 1.9版本 1.18版本同步
一幅脑图总结一下需求分析(工作上实际遇到的情况的补充)
Nailing open platform - applet development practice (nailing applet server side)
随机推荐
[Qunhui] no port access (reverse proxy + intranet penetration)
Wechat applet is bound to a dynamic array to implement a custom radio box (after clicking the button, disable the button and enable other buttons)
Laravel framework Alipay payment fails to receive asynchronous callback request [original]
Detailed explanation of globalkey of flutter
Modify the number of Oracle connections
CTF serialization and deserialization
Analysis of the principle of obxwidget
What are the advantages and risks of paper gold investment
College C language final exam · multiple choice questions · summary notes of mistakes and difficulties
Sorting out the knowledge points of the renderview renderobject parentdata of the shuttle
Knowledge of SQL - database design, backup and restore
Nightmare
Syntax error of go language generic in IDE
Lua grammar explanation
[QT] resource file import
Introduction Guide to the flutterplugin plug-in in the actual combat of flutter
Which is the best embedded visual programming software? (introduction, evaluation and selection of visual programming platform) [scratch, mind+, mixly]
Guide de la pompe de données Oracle
CTF crypto (I) some simple encoding and encryption
2021 year end summary