Redis installation (centos7/tar.gz)

Source: Internet
Author: User

1. Upload the installation package redis-3.2.0.tar.gz to the Linux system, at your own discretion.

2. Extracting files

tar -zxf redis-3.2. 0. tar. gz

3. After decompression will generate folder "redis-3.2.0" in the current directory, copy it to "/usr/local/", I am more accustomed to install the software into this directory.

# Non-root user, add sudo before command CP -RF./redis-3.2. 0 /usr/local/redis

4. Go to the directory, execute make

cd/usr/local/redis/#非root用户, add sudo make before the command

If "/bin/sh:cc:command not found" is indicated, the system does not have GCC installed and can be installed using the following command

#非root用户, add sudo before the command Yum Install GCC

After the installation succeeds, execute the make command again.

If you are prompted with "Zmalloc.h:50:31:fatal Error:jemalloc/jemalloc.h:no such file or directory", execute

 Make malloc=libc

5. I have not reported any other errors here, the results are as follows, the installation is successful

Prompts to run the "Make Test" command, but executes an error, as follows

8.5  in order to run the Redis test

Can install TCL and then execute "make test" there is no mistake, the installation of TCL as follows

Yum Install tcl

6. Start

./src/redis-server--protected-mode No &

After you start, you can use the command line

./src/redis-cli

Redis installation (centos7/tar.gz)

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.