Home  >  Article  >  Database  >  How to configure environment variables after installing redis

How to configure environment variables after installing redis

王林
王林forward
2020-12-31 09:17:498397browse

How to configure environment variables after installing redis

The specific steps to configure environment variables are as follows:

(Learning video sharing: redis video tutorial)

1. First download the windows 64-bit redis

How to configure environment variables after installing redis

2. Download the file:

How to configure environment variables after installing redis
3. Right-click My Computer, click Properties => Advanced System Settings => Environment Variables

How to configure environment variables after installing redis

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:

How to configure environment variables after installing redis

5. Open a command line window, enter redis-server.exe and press the Enter key. Redis starts successfully:

How to configure environment variables after installing redis

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.

How to configure environment variables after installing redis

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!

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