Redis & rabbitMQ installation, redis command
Preface:
I have been learning python for some time. Recently I have been learning twisted (blog: twisted installation), redis, and rabbitMQ, so I still want to write down my blog.
I. Redis Installation
Redis is a no-SQL cache database. It is thread-safe and does not need to be locked during use. redis has made restrictions.
I installed Windows 64-bit, so I will briefly describe how to install Windows:
Redis supports 32-bit and 64-bit. This needs to be selected according to the actual situation of your system platform, here we download the Redis-x64-xxx.zip compressed package to the C disk, decompress, rename the folder redis.
Open a cmd window and use the cd command to switch the directory to C: \ redis and run the redis-server.exe redis. windows. conf.
In this case, another cmd window is opened. Do not close the original window, or you will not be able to access the server.
Switch to the redis directory and run redis-cli.exe-h 127.0.0.1-p 6379.
Set the key-value pair set myKey abc
Retrieve key-value pairs get myKey
Ii. rabbitMQ Installation
RabbitMQ depends on Erlang. You need to install Erlang first. Erlang. Download Erlang and install it by default.
Download RabbitMQ server.download rabbitmq-server.exe and install it by default.
The installation path is C: \ Program Files \ RabbitMQ Server \ rabbitmq_server-3.6.6 \ sbin
Check whether rabbitMQ is running normally. Open the command line interface to install the directory. Enter rabbitmqctl status.
As shown in, the installation is successful and the rabbitMQ server has been started.
Import python to support the rabbitMQ API pika
Next I will talk about the usage of redis and rabbitMQ ~~