当前位置:网站首页>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 ,
边栏推荐
- Verrouillage de lecture et d'écriture pour la synchronisation des fils
- Analysis report on development status and future trend of CMOS image sensor industry in China 2022 ~ 2028
- Resolve PHP is not an internal or external command
- In 2022, what professional competitions can college students majoring in automation, electrical engineering and automation participate in?
- Tp6 multi table Association (table a is associated with table B, table B is associated with table C, and table d)
- Read / write lock for thread synchronization
- Using jsup to extract images from interfaces
- Zhubo Huangyu: all the precious metals you want to know are here
- Navicat connects the pit of shardingsphere sub table and sub library plug-ins
- Swagger
猜你喜欢
随机推荐
Threejs专用天空盒素材,五种天空盒素材免费下载
List of provinces, cities and counties in China
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)
VHDL设计
Ueeditor automatically appends P tags to rich text.br tags always wrap.br tag solutions
Using jsup to extract images from interfaces
MySQL enable logbin in Qunhui docker
微软禁止俄用户下载安装Win10/11
Fastadmin always prompts sqlstate[23000]: integrity constraint violation: 1052 column 'ID' in order clause is am
The statistics in the MySQL field become strings, and then they are converted into numbers for sorting
PIP batch complete uninstall package
6、 Project practice --- identifying cats and dogs
Analysis report on development trend and market demand of global and Chinese molecular diagnostics industry from 2022 to 2028
Upload script file (one sentence back door) WAF bypass (PHP)
SQL related knowledge - constraints
Computer network high frequency interview questions
Implementation of seven classes of BlockingQueue interface
小程序中实现视频通话及互动直播功能
Syntax error of go language generic in IDE
How does virtual box virtual machine software accelerate the network speed in the virtual system?


![[QT] dialog box](/img/ca/e65a0c167a4509f7c6a241870f6a32.png)






