The specific steps to configure environment variables are as follows:
(Learning video sharing:redis video tutorial)
1. First download the windows 64-bit redis
2. Download the file:
3. Right-click My Computer, click Properties => Advanced System Settings => Environment Variables
4. (I am using DELL Win10) Select the Path line, click Edit to enter the editing interface, and select Browse , just find the Redis folder you downloaded:
5. Open a command line window, enter redis-server.exe and press the Enter key. Redis starts successfully:
6. Open a new command line window and enter:
redis-cli.exe -h 127.0.0.1 -p 6379
and press Enter;
Then try setting a simple value : set myKey firstKey and press Enter;
Then take out the set value: get myKey and press Enter.
Related recommendations:redis database tutorial
The above is the detailed content of How to configure environment variables after installing redis. For more information, please follow other related articles on the PHP Chinese website!