Ubuntu redis and Ubuntu redis
Home: http://redis.io/
Download and install:
The installation of redis is very simple. There are ready-made Makefile files, and you can directly run the make command.
<span style="font-size:18px;">$ cd /tmp$ wget http://download.redis.io/releases/redis-2.8.19.tar.gz$ tar xzf redis-2.8.19.tar.gz$ cd redis-2.8.19$ make</span>
There are four executable files under/usr/local/bin:
Redis-benchmark,
Redis-cli,
Redis-server,
Redis-statThese four files have the following functions:
- Redis-server: daemon Startup Program of the Redis server
- Redis-cli: Redis command line operation tool. Of course, you can also use telnet to operate based on its plain text protocol.
- Redis-benchmark: Redis performance testing tool to test the read/write performance of Redis in your system and your configuration
- Redis-stat: Redis status detection tool that can detect Redis's current status parameters and latency
Redis. conf is under/etc/redis.
This is a complete available redis package
Start to use:
Now you can start redis. redis has only one startup parameter, that is, its configuration file path.
Redis-server/etc/redis. conf
In this case, you can open a terminal for testing. The default listening port in the configuration file is 6379.
Redis-cli
The operation result is as follows: