Redis installation on Windows

Source: Internet
Author: User
Tags redis windows install redis

GitHub Windows version Https://github.com/MicrosoftArchive/redis

Download unzip complete

To start Redis:

Redis-server     Installation path + redis.windows.conf

To install the Redis Windows service:

redis-server  --service-  install redis.windows.conf   # Installs as Windows Service  Redis- Server  --service-Uninstall  #  uninstalling Redis-server  --service-start     #  Start Redis-server  --service-Stop         # stop

Configuration files for Redis:

Daemonize no-->> daemonize Yes   is running on the front-end or back-end (daemon)

Bind 127.0.0.1 default is to allow the slaver end to connect to the master side after binding the machine comment

Redis Master slaver Test:

Redis-server Path +redis.windows.conf   

Redis-cli

Set Key 123

Get Key---123


Redis-cli-h IP #启动 slaver-End Redis
Get key --123

Redis vs MongoDB:

Redis is a memory-based database (data and keys are placed in memory). When the memory is full, it will begin to automatically delete the data URLs are typically placed in Redis, and crawled data is placed in MongoDB. MongoDB, which is used only to save data. The crawled data is stored in it. Redis,  more like a queue, there is a steady stream of URLs, there is a steady stream of URLs out, URLs used once do not need, with the data crawled into MongoDB inside MongoDB  is not a memory-based database, It just saves all the file indexes in memory. 
On the same model, MongoDB will save more than Redis, but Redis responds faster. The key is how much it looks.

You can think of MongoDB as MySQL and Redis as memory

Redis for data interchange. Data persistence with MongoDB





Redis installation on Windows

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.