Home>Article>Database> Introduce common operations such as starting redis on windows

Introduce common operations such as starting redis on windows

藏色散人
藏色散人 forward
2020-11-01 16:14:44 3351browse

The following columnRedis Tutorialwill 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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete