- Learning Redis
- Vinoo Das
- 392字
- 2021-07-16 14:08:30
Installing Redis on Windows
Microsoft Open Tech group has ported Redis and maintains it for win32/win64 machines. There are two ways in which we can get started with installing Redis on Windows, and these are listed as follows:
- Working with prebuilt binaries
- Getting the code and compiling it in the Microsoft environment
For the impatient, downloading the binaries of Redis 2.8 is an easier option. First things first, we need to do the following in order to get started:
- Go to https://github.com/MSOpenTech/redis and download the ZIP file under the Clone in Desktop button. For this book, we are going to download the latest version of Redis, that is, the
redis-2.8.zip
file. - Right-click on the link and save it in a suitable location on your Windows machine. I have saved it at
F:\sw2\redis\redis-2.8.zip
. - Right-click and unzip the compressed file to a suitable folder. I have named the folder as
redis-2.8
, and the folder structure after unzipping looks similar to what is shown in the following screenshot:Folder structure after unzipping the compressed file
- Get inside the
bin
folder. You will find therelease
folder; when you click on it, you will have a list of the files inside this folder, as shown in the following screenshot:Folder structure inside the bin/release folder
- Open Command Prompt and run
redis-server.exe
. Provide theredis-server.exe --maxheap 1024mb
heap size and you should see a console window popping up, similar to the following screenshot. In the case of Windows 7, the user might be asked to trust the software to proceed further.Redis server's default startup
- Note the last line showing on the Command Prompt: The servers now ready to accept connections on port 6379.
- Now, let's start a prebuilt client, which is shipped with the distribution, and connect to the server. The client that we will execute is a command-line interpreter, and when we click on it, the client program will be launched:
The Redis client is started with the Redis server running
- Your simple installation is complete (clustered setup and other management topics will be taken up in later chapters).
Tip
Downloading the example code
You can download the example code files from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)(微課版)
- 實(shí)戰(zhàn)Java程序設(shè)計(jì)
- Mastering Python High Performance
- The DevOps 2.5 Toolkit
- 深度學(xué)習(xí):Java語言實(shí)現(xiàn)
- CoffeeScript Application Development Cookbook
- 好好學(xué)Java:從零基礎(chǔ)到項(xiàng)目實(shí)戰(zhàn)
- Python數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南(全彩)
- 算法圖解
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- Google Adsense優(yōu)化實(shí)戰(zhàn)
- 微信小程序開發(fā)邊做邊學(xué)(微課視頻版)
- jQuery基礎(chǔ)教程(第4版)
- 狼書(卷2):Node.js Web應(yīng)用開發(fā)
- Spring Cloud微服務(wù)架構(gòu)開發(fā)實(shí)戰(zhàn)