

Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20131226/Ĭp: /usr/lib/php/extensions/no-debug-non-zts-20131226/#: Operation not permittedĢ. Test redisĪfter installing and starting redis, log in to the client and test redis.Įxample: 127.0.0.1:6379 > set key "success" // write data The login client command is: or or, and execute it in the root directory of the redis installation folder. SRC / redis server/ nf To stop the redis service, you can execute the client command. Start redis and execute the command in the root directory of redis. Modify the nf In is to start background operation modeĨ. (check whether the installation of redis is successful: you can also run make test after the installation, and indicates that the installation of redis is successful.)ħ.

If you can see the information as shown in the figure below, the installation is successful. Print out phpinfo() to see if the installation is successful. #The address here is your reids installed redis.so The location of.Ħ. If you report the following error in step 4:Įxecuting test client: couldn’t execute “src/redis-benchmark”: no such file or directory.Īfter the above installation is successful, configure it php.ini Document:Įxtension_dir = “/usr/lib/php/extensions/no-debug-non-zts-20131226/”

The terminal enters the root directory after decompression: cd /usr/local/redis-5.0.5 Unzip the downloaded redis to the / usr / local directory and run the command: tar -zxvf redis-5.0.5.tar.gz -C /usr/local/redis-5.0.5Ģ.
#INSTALL REDIS FOR MAC INSTALL#
Here I provide a download address: redis-5.0.5 Installing and starting redisġ. The easy and reliable way to install Redis on a Mac is using Homebrew (a free, popular, and open-source software package management system that simplifies the installation of software on macOS and Linux). You can download it on the official website of redis.
#INSTALL REDIS FOR MAC HOW TO#
Download redisīefore installing redis, you need to download redis. In this post we will see How To Install Redis On Mac OS XTo install Redis, run the following commands: mkdir redis & cd redis curl -O. Next, I’ll talk about the installation steps and points for attention. Mac has its own PHP environment, but it does not have the redis extension installed. Using ANSI C language to write, support network, can be based on memory or persistent log type, and provide a variety of language API. In some cases, it can play a good complementary role in relational database. The emergence of redis, to a large extent, compensates for the lack of key / value storage such as memcached. Redis is a high-performance key value database.
