Install Redis in windows8.1 and windows8.1redis
Something to say
Nowadays, the Internet is playing with distributed caching or distributed databases. When I go to the interview, I will also ask some related knowledge and application scenarios, and I will leave it out before I start. Redis officially only provides the Linux version for download. For windows, you need to go to github for download. By default, github does not seem to be able to open and download windows. I use chrome and it is particularly slow to open the page, in addition, I have installed the red apricot vpn. If you cannot open it, please do not be surprised.
1. Download and install
1. https://github.com/downloads/dmajkic/redis/redis-2.4.5-win32-win64.zip. Based on whether your system is 32-bit or 64-bit.
2. decompress the package and create a new Redis folder on drive D. Copy the unzipped files to the folder. There are 7 files in total. The most common ones are redis.conf?redis-server.exe=redis-cli.exe.
3. Add the directory where Redis is located to the environment variable so that you can switch the judgment and enter the full path at each command prompt.
2. Start the server and client
1. Open the command prompt and enter the command redis-server.exe can also enter redis-server.exe redis. conf. If this parameter is not entered, the redis. conf configuration file is used by default. If yes, the server is enabled and no client connection is available.
2. Open the client and enter redis-cli.exe-h 127.0.0.1-p 6379. The default port is 6379.
3. After the client is opened, the server displays the current number of client connections.
4. insert value and get value.
Summary
In the past, there was no application environment to use redis. Now the environment has changed, so you should change your environment and learn and strengthen redis. Another problem is that the doscommand is used to start the server. Every time you need to open a command prompt, how can you use the windows service to open the redis service?