Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation and use of redis under win7x64

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "installation and use of redis under win7x64", the content of the explanation is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "the installation and use of redis under win7x64"!

Redis is an open source API that is written in ANSI C language, supports the network, can be memory-based and persistent, and provides API in multiple languages. Since March 15, 2010, the development of Redis has been presided over by VMware. Since May 2013, the development of Redis has been sponsored by Pivotal.

Official download address: http://redis.io/download, but officially there is no executable program under 64-bit Windows. Currently, there is an open source hosted on github, address: https://github.com/ServiceStack/redis-windows Click here, download the file and extract it to your computer directory.

The version used in this article: redis64-3.0.501.zip

After decompression, the directory is as follows:

File name brief redis-benchmark.exe benchmark redis-check-aof.exeaofredischeck-dump.exedumpredis-cli.exe client redis-server.exe server redis.windows.conf profile

Then edit the redis.windows.conf file, I see some tutorials on the Internet say editing inside maxheap, but after the 3.x version, the modification is maxmemory, bytes is bytes, please convert it yourself, I change it to maxmemory 1024000000 here.

In fact, this place can not be set, he has already said in the description, redis will be automatically set.

Set the password for redis: find # requirepass foobared and change it to requirepass my password, but not in the local test.

When this interface appears, it means that the startup is successful, listen to port 6379, and then let's test the effect.

Reopen a DOS interface and the effect is as follows:

Finally, add redis to the Windows service. First, start the redis server, then run the redis client, and then type in through the Windows service-install command

Redis-server-service-install redis.windows.conf-loglevel verbose

In the future, you can start using win's service without having to open a DOS interface to start it every time.

1. Install the redis service

Redis-install.bat

1 echo install redis-server23 D:\ redis\ redis-server.exe-- service-install D:\ redis\ redis.windows.conf-- loglevel verbose

2. Uninstall redis service

Redis-uninstall.bat

1 echo uninstall redis-server2 3 D:\ redis\ redis-server.exe-- service-uninstall

3. Start the redis service

Start-redis.bat

1 echo start redis-server2 3D:\ redis\ redis-server.exe D:\ redis\ redis.windows.conf Thank you for your reading. The above is the content of "installation and use of redis under win7x64". After the study of this article, I believe you have a deeper understanding of the installation and use of redis under win7x64, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report