Install Redis in Ubuntu

Source: Internet
Author: User
Tags download redis install redis

Redis is a distributed NoSQL Database System Oriented to "key/value" pairs of data types. It features high performance and persistent storage, and is suitable for high-concurrency application scenarios. Keys include strings, lists, hashes, sets, and sorted sets. atomic operations can be performed on these types ). The emergence of redis largely compensates for the shortage of keyvalue storage such as memcached, and can play a good complementary role in relational databases in some cases. It provides Python, Ruby, Erlang, PHP, and c # clients for ease of use.
This article is intended for the first time using Redis in linux. The main steps are as follows:
Log On with root privileges, switch to the/tmp directory www.2cto.com [plain] cd/tmp input command download redis: [html] wget http://redis.googlecode.com/files/redis-4.4.14.tar.gz unzip [plain] tar xvzf redis-4.4.14.tar.gz input command: [html] make test www.2cto.com does not contain tclsh8.5, and the command is as follows: [html] sudo apt-get install tcl8.5 sudo make install
Start redis: [plain] redis-server check if redis is working properly execute ping command: [plain] redis-cli ping [plain] PONG redis is working properly
You can also directly run the command: [html] redis-cli redis: 127.0.0.1: 6379> ping PONG www.2cto.com redis: 127.0.0.1: 6379> set testkey 1 OK redis: 127.0.0.1: 6379> get testkey "1" by Joseph ph_liu81

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.