Redis Client Download Mac

The Redis key-value databases have become quite popular and are used to create data structures that contain strings, lists, sets, or hashes. In addition, the Redis database servers are compatible with different programming languages, such as C, C, ActionScript, Clojure, Objective-C, PHP, Python, and so on. Securing Redis Client Connections User Login Lockout for Security Compliance Supported Clients and Web Browsers. Download RedisInsight for Desktop. Prepare the executable: For Ubuntu - To make the downloaded file executable, run: chmod +x redisinsight- For Windows and MacOS - Run the installer.

preface

Redis is a high-performance key value database. The emergence of redis, to a large extent, compensates for the lack of key / value storage such as memcached. In some cases, it can play a good complementary role in relational database. Using ANSI C language to write, support network, can be based on memory or persistent log type, and provide a variety of language API.
Mac has its own PHP environment, but it does not have the redis extension installed. We need to install it separately. Next, I’ll talk about the installation steps and points for attention.

Download redis

Redis Client Download Mac Installer

Before installing redis, you need to download redis. You can download it on the official website of redis. Here I provide a download address: redis-5.0.5

Installing and starting redis

1. 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

2. The terminal enters the root directory after decompression:cd /usr/local/redis-5.0.5

3. Test compilation:sudo make test

4. To install redis:sudo make install

If you report the following error in step 4:

Executing test client: couldn’t execute “src/redis-benchmark”: no such file or directory.

Then perform the following two steps

Redis Desktop Manager For Mac

(1)、sudo make distclean

(2)、sudo make

5. Configuration
After the above installation is successful, configure it php.ini Document:
extension_dir = “/usr/lib/php/extensions/no-debug-non-zts-20131226/”
#The address here is your reids installed redis.so The location of.
extension = redis.so

6. Print out phpinfo() to see if the installation is successful. If you can see the information as shown in the figure below, the installation is successful.

(check whether the installation of redis is successful: you can also run make test after the installation, and [O / all tests passed without errors!] [Cleanup: may take some time… OK] indicates that the installation of redis is successful.)

7. Modify the redis.conf In [daemonize no] is [daemonize yes] to start background operation mode

8. Start redis and execute the command in the root directory of redis:. / SRC / redis server/ redis.conf To stop the redis service, you can execute the client command. / SRC / redis cli shutdown

9. The login client command is: [. / SRC / redis cli] or [. / SRC / redis cli – P 6379] or [telnet 127.0.0.1 6379], and execute it in the root directory of the redis installation folder.

Test redis

After installing and starting redis, log in to the client and test redis.
Example:

Problem summary

1. Prompt when sudo make install

Mac Os Redis Client

Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20131226/
cp: /usr/lib/php/extensions/no-debug-non-zts-20131226/#[email protected]#: Operation not permitted
make: * [install-modules] Error 1

Redis Gui Client For Mac

Solution: make install not permit

Mac os redis client

2. After installation, configure php.ini file

Extension is added to the file= redis.so When testing redis, we found that it did not come out.

Solution:
extension_ Dir = “/ usr / local / PHP / lib / PHP / extensions / no-debug-zts-20090626” ා write the address returned by make install in the address

extension=redis.so

Redis Client For Windows

Related information

Redis Client Tool

Installing redis5.0 and commands on MAC
Redis installation configuration
Redis extension installation and sink in MAC
MAMP installing redis