1. download and install [plain] viewplaincopycd/usr/local/srcwget & ndash; chttp: // redis.
1. download and install
[Plain]View plaincopy
- Cd/usr/local/src
- Http://redis.googlecode.com/files/redis-3.0.1.tar.gz wget-c
2. Compile and install
[Plain]View plaincopy
- Tar zxvf redis-3.0.1.tar.gz
- Cd redis-3.0.1
- Make
3. use
[Plain]View plaincopy
- View version
- Redis-server -- version
[Plain]View plaincopy
- Redis-benchmark
- Redis benchmark information, redis server performance detection
[Plain]View plaincopy
- Redis-benchmark-h localhost-p 6379-c 100-n 100000
- 100 concurrent connections and 100000 requests. check the performance of the redis server whose host is localhost and Port is 6379.
[Plain]View plaincopy
- Stop
- Redis-cli shutdown
[Plain]View plaincopy
- Monitoring
- Redis-cli-h localhost-p 6380 monitor
[Plain]View plaincopy
- Statistics
- Redis-cli-h localhost-p 6380 info
[Plain]View plaincopy
- Overall information
- Redis-stat host localhost port 6380 overview
[Plain]View plaincopy
- Request duration
- Redis-stat host localhost port 6380 overview