1. Download the Redis installation package
Address: http://download.redis.io/releases/redis-3.0.6.tar.gz
2. Unzip the installation package
Command: Tar zvxf redis-3.0.6.tar.gz
3. Go to the folder and install
Command: CD redis-3.0.6.tar.gz
Command: Make
4. Test whether the installation is successful
Command: Make Test
Error occurred:
[[email protected] redis-stable]# make test
CD src && make test
MAKE[1]: Entering directory '/USR/LOCAL/SRC/REDIS-STABLE/SRC '
Which:no tclsh8.5 in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/ Geffzhang/bin)
You need ' tclsh8.5 ' on order to run the Redis test
MAKE[1]: * * [Test] Error 1
MAKE[1]: Leaving directory '/USR/LOCAL/SRC/REDIS-STABLE/SRC '
Make: * * * [Test] Error 2
[Email protected] redis-stable]#
Cause: TCL is not installed
Workaround: Yum Installation
Command: Yum install-y tcl
5. Start the installation
Command: Make install
Follow the prompts to execute the command: CD src && make install
6. Start Redis
Command:./Redis-Server (default configuration startup)
Command:./Redis-server Redis. Conf (Specify configuration start)
CentOS 6.5 Installation redis3.0.6