1, update and install the operation:
sudo apt-get updatesudo apt-get install-y redis-server
If you've already installed Redis, you'll be prompted: Redis is the newest version, no need to install again (latest version installed)
2, if you do not install the new version, the old version to replace, you need to delete and install the operation.
sudo apt-get remove Redis-serversudo apt-get autoremove
Statement one: Delete the old version of Redis that is already installed; Statement two: Automatically delete packages that have already been installed. ded file; Then execute the "Action 1" statement to install
3. See if Redis is started?
$ redis-CLI
The above command will open the following terminal:
127.0. 0.1:6379>
127.0.0.1 is the native IP, and 6379 is the Redis service port. Now let's enter the PING command.
127.0. 0.1:6379> pingpong
The above indicates that we have successfully installed Redis.
4.
Ubuntu14.04 installation Redis-server