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.
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!