Home >Database >Redis >How to install redis server under debian

How to install redis server under debian

PHPz
PHPzforward
2023-05-26 20:42:001443browse

In the Ubuntu system installation, use the following command to install Redis from source:
apt-get update
apt-get install redis-server
Start Redis
redis-server
Check whether redis is started
redis-cli
The above command will open the following terminal:
redis 127.0.0.1 :6379>
127.0.0.1 is the local IP and 6379 is the redis service port. Now we enter the PING command.
redis 127.0.0.1:6379> ping
PONG
The above shows that we have successfully installed redis.

The above is the detailed content of How to install redis server under debian. For more information, please follow other related articles on the PHP Chinese website!

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