Home > Database > Redis > body text

Introduce common operations such as starting redis on windows

藏色散人
Release: 2020-11-01 16:14:44
forward
3435 people have browsed it

The following column Redis Tutorial will introduce you to common operations such as starting redis on windows. I hope it will be helpful to friends in need!

1. Install, unzip

2. Start

(1) dos command prompt, enter the redis installation directory:

Enter the command: redis -server redis.windows.conf

With this startup method, this interface cannot be closed to take effect

(2) You can register it as a service , set to boot or start manually

dos command prompt, enter the redis installation directory:

Enter the command: redis-server --service-install redis.windows-service.conf

Start the service: redis-server --service-start

Stop the service: redis-server --service-stop

Uninstall the service: redis-server --service-uninstall

3. Clear cache

(1) Clear locally and open redis-cli.exe directly

Enter keys * View the cache of all key values

Enter flushall to clear all caches

(2) Local Remote connection clear cache

dos command prompt interface, enter the redis installation directory:

Input: redis-cli.exe -h 192.168.10.10 -p 6379

The above is the detailed content of Introduce common operations such as starting redis on windows. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template