Installing Redis under Ubuntu

Source: Internet
Author: User
Tags install redis redis server

The simplest way to install online:
#安装Redis服务器端~ sudo apt-get install redis-server

After the installation is complete, the Redis server starts automatically and we check the Redis server program
# 检查Redis服务器系统进程~ ps -aux|grep redisredis     4162  0.1  0.0  10676  1420 ?        Ss   23:24   0:00 /usr/bin/redis-server /etc/redis/redis.confconan     4172  0.0  0.0  11064   924 pts/0    S+   23:26   0:00 grep --color=auto redis# 通过启动命令检查Redis服务器状态~ netstat -nlt|grep 6379tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN# 通过启动命令检查Redis服务器状态~ sudo /etc/init.d/redis-server statusredis-server is running

Download the installation package to install the method:
下载安装包:
wget http://download.redis.io/releases/redis-2.8.9.tar.gz

解压缩:
tar xvfz redis-2.8.9.tar.gz
Go to the directory after decompression, compile
CD redis-2.8.9
Compile:
sudo make

Installation:
sudo make install

Run tests to verify that Redis is functioning properly:
sudo make test
To start the Redis service:
/usr/local/bin/redis-server
 

Installing Redis under Ubuntu

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.