:
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