Linux installation Redis

Source: Internet
Author: User
Tags benchmark install redis

It is very easy to install Redis under Linux, as described in the following steps (official website):

 1、下载源码,解压缩后编译源码。

$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz

$ tar xzf redis-2.8.3.tar.gz

$ CD redis-2.8.3

$ make

 2、编译完成后,在Src目录下,有四个可执行文件redis-server、redis-benchmark、redis-cli和redis.conf。然后拷贝到一个目录下。

Mkdir/usr/local/redis

CP Redis-server/usr/local/redis

CP Redis-benchmark/usr/local/redis

CP Redis-cli/usr/local/redis

CP Redis.conf/usr/local/redis

Cd/usr/local/redis

  3、在redis解压目录下的src目录下,安装( make install )

"Open Redis Port":
View FIREWALLD status through Systemctl status Firewalld
Turn on the firewall by Systemctl start FIREWALLD
View the Firewalld status again via Systemctl status Firewalld, showing that running is turned on
If you want to turn off the firewall settings, you may be able to turn off the feature by Systemctl stop firewalld this command.

Executes Firewall-cmd--permanent--zone=public--add-port=6379/tcp, prompting for success, indicating successful setup

Linux installation 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.