Redis is an open source package written in C language. It is a high-performance key-value database that largely compensates for the shortcomings of other types of key-value databases. Installation instructions: Obtain the source code, unzip it, enter the source code directory and use the wget tool to download: wget (Baidu does not allow the use of links) tar xzf redis-1.2.6.tar.gzcd redis-1.2.6. Compile and generate an executable file. Since the makefile has been written, we only need to execute the make command directly in the source code directory to compile: makemake-testsudo make installmake After the command is executed, this executable file will be generated in the current directory, respectively. They are redis-server, redis-cli, redis-benchmark, and redis-stat. Their functions are as follows: redis-server: the daemon startup program of the Redis server redis-cli: the Redis command line operation tool. Of course, you can also use telnet to operate according to its plain text protocol redis-benchmark: Redis performance testing tool, test the read and write performance of Redis under your system and your configuration redis-stat: Redis status detection tool, can detect Redis Current status parameters and delay status. The process of establishing a Redis directory (optional) is not necessary. It is only an operation for unified management of Redis-related resources. Execute the following command to create the relevant directory and copy the relevant files to the directory: sudo -smkdir -p /usr/local/redis/binmkdir -p /usr/local/redis/etcmkdir -p /usr/local/redis/varcp redis-server redis-cli redis-benchmark redis-stat /usr/local/redis/bin/cp redis.conf /usr/local/redis/etc/
Expand