Home  >  Article  >  Database  >  How to install redis server in debian

How to install redis server in debian

王林
王林forward
2023-05-27 16:31:061037browse

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. To install Redis from source on Ubuntu system, use the following command:

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 in 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