Redis & amp; rabbitMQ installation, redis command

Source: Internet
Author: User

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 ~~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.