In the Ubuntu system installation, use the following command to install Redis from source:apt-get update
apt-get install redis-server
Start Redisredis-server
Check whether redis is startedredis-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 Redisredis-server
Check whether redis is startedredis-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!