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.
- Before you proceed with your Redis installation, make sure you have some experience using the sudo privilege to log into your system. 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.
Download Redis Desktop Manager - Improve the way you handle data within Redis databases with the help of this cross-platform and highly efficient piece of software. Grab the latest copy of Redis from this link. At the time of this writing the latest stable release is 3.2.6. Follow the instructions below now. I downloaded redis to my Downloads folder on Mac. First execute the make test command to make sure Redis can complete a clean install on your computer.
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
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
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
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
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
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
Redis Desktop Client
1. installing redis driver of PHP
Redis Client Download Mac Download
- Brew installs redis extension of PHP
(1) Search for redis extensions first: brew search php55-(2) Install redis extensions: brew install josegonzalez/php/php55-redis
(3) After installation, you can check whether the installation is successful by command: php-m
(Remarks:php -m
The command can view all PHP extensions installed; it can also request phpinfo () to see if they succeed.
Redis Gui Client For Mac
2. Installing MAC redis visual client
- Download and install the MAC redis client tool through http://www.pc6.com/mac/486661.
Redis Desktop Manager For Mac
3. Open redis in discuz configuration file
- Open the config/config_global.php file and set up the port configuration of reids, where requirepass is the redis authentication password
- Upload/source/class/memory/memory_driver_redis.php file, init method auth code authentication
- Then open discuz background to see redis related configuration: global performance optimization memory optimization
Memory cleaning optimization in discuz background memory optimization