본문 바로가기

카테고리 없음

Redis For Mac Download



If you’re running Windows or macOS, you can install Redis by clicking on the download link for the interactive installer. Alternatively, you can use Homebrew on macOS to install it. We’ll provide detailed instructions on that process later in our tutorial. Install Redis on Linux. Download the latest version of Redis Desktop Manager for Mac - Redis databases graphical user interface. Read 0 user reviews of Redis Desktop Manager on MacUpdate.

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

Sysex for mac. 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

(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

Download

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:

Redis Gui Mac Download

Problem summary

1. Prompt when sudo make install

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

Solution: make install not permit

2. After installation, configure php.ini file

Redis Desktop Mac Download

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 Cli Mac Download

Related information

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