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)