In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to install Redis in windows and deploy it into a service. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
1: download windows version: https://github.com/MSOpenTech/redis/releasesLinux version: official website download: http://www.redis.cn/ git download https://github.com/antirez/redis/releases
We are now talking about the installation and deployment under windows, and the latest version under windows is 3.2.100.
Download address, providing a variety of download content
Redis-x64-3.2.100.msi is the simplest installation file under windows. It is convenient to write Redis to windows service directly.
Redis-x64-3.2.100.zip needs to be unzipped and installed, which is discussed next.
Zip compressed version of Source code (zip) source code
Tar.gz compressed version of Source code (tar.gz) source code
Two: installation, decompression and installation
Extract the downloaded Redis-x64-3.2.100.zip to an address.
This effect indicates that the service was started successfully.
Start another cmd and in the redis directory, use the command: redis-cli.exe to start the client and connect to the server
Install as a windows service
Installation command:.\ redis-server.exe-- service-install redis.windows.conf uses the command to install successfully, as shown in the figure, so:
Common redis service commands.
Uninstall service: redis-server-- service-uninstall
Enable the service: redis-server-- service-start
Stop service: redis-server-- service-stop
Rename service: redis-server-- service-name name
Rename the service, which needs to be written after the first three parameters, for example:
The following would install and start three separate instances of Redis as a service: three different Redis instances will be installed and started as services: redis-server-- service-install-- service-name redisService1-- port 10001redis-server-- service-start-- service-name redisService1redis-server-- service-install-- service-name redisService2-- port 10002redis-server-- service-start-- service-name redisService2redis-server-- service-install-- service-name redisService3-- port 10003redis-server-- Service-start-- service-name redisService3 IV: test startup service
Redis-server-service-start
Client
Command:
Compact mode: redis-cli.exe specified mode: redis-cli.exe-h 127.0.0.1-p 6379-a requirepass (- h server address-p specifies port number-a password for connecting to the database [configurable in redis.windows.conf], no password by default) Test read and write data
Download address:
Https://redisdesktop.com/download after reading the above, do you have any further understanding of how to install Redis in windows and deploy it as a service? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.