I have referenced too many tutorials and I have forgotten which configuration is successful. In short, the compilation and installation methods are used.
First download:
Wget http://download.redis.io/releases/redis-2.8.13.tar.gz
Extract
Tar zxvf redis-2.8.13.tar.gz
Switch Directory
Cd redis-2.8.13
Run the make command to output the last few lines.
Hint: To run 'Make test' is a good idea ;)
Make [1]: Leaving directory '/opt/redis-2.8.13/src'
Run the Installation Command
Make install
Tip:
Cd src & make install
Make [1]: Entering directory '/opt/redis-2.8.13/src'
Hint: To run 'Make test' is a good idea ;)
INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install
Make [1]: Leaving directory '/opt/redis-2.8.13/src'
Run: cd src & make install
Tip:
Hint: To run 'Make test' is a good idea ;)
INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install
Follow the prompts to execute: make test
You need tcl 8.5 or newer in order to run the Redis test
Make: *** [test] Error 1
In fact, you can directly run the./redis-server in tcl instead.
Make prefi x =/usr/local install
You may need to run the above sentence to make