Installation of Redis

Source: Internet
Author: User
Tags download redis redis version

Download Redis version 3.2.0 on the website

Upload to server http://i.cnblogs.com/EditPosts.aspx?opt=1 with FTP or download and install the decompression package directly on the server wget http://download.redis.io/releases/redis-3.2.0.tar.gz so that we can execute the LL command on the server with redis-3.2.0.tar.gz This compresses the package and starts the decompression installation
tar xzf redis-3.2.0.tar.gz
cd redis-3.2.0

进入目录 会有 这些文件




然后 make 编译
进入src目录如下
会有几个可执行的文件
redis-server    启动redis服务
redis-cli      进入redis 开始设置缓存 key
执行./redis-server  


代表启动redis服务了 这里我们能看到redis的端口号是6379 进程ID 是4976 版本是 3.2.0

然后执行 ./redis-cli 开始设置缓存


这里我用set设置了一个key 是name value 是 secret的缓存
用get来取值 取出了 name 的值 是 secret

怎么样 简单把?










Installation of Redis

Related Article

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.