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!