2.解压并编译安装
[iyunv@]# tar -xzf redis-3.0.2.tar.gz
[iyunv@]# ll
redis-3.0.2 redis-3.0.2.tar.gz
[iyunv@]# cd redis-3.0.2
[root@redis-3.0.2]# make
检查redis是否有异常
[root@redis-3.0.2]# make test
[root@redis-3.0.2]# make install
安装完成后再linux系统执行
#redis-(按tab键)
3.运行redis
i)开启Server进程
[root@redis-3.0.2]# ./src/redis-server
20:56:53[iyunv@vstar75 src]# ./redis-server
20:56:5317908:C 05 Jun 15:48:57.313 # Warning: no config file specified, using the default config. In order to specify a config file use
./redis-server /path/to/redis.conf
20:56:53 _._
20:56:53 _.-``__ ''-._
20:56:53 _.-`` `. `_. ''-._ Redis 3.0.2 (00000000/0) 64 bit
20:56:53 .-`` .-```. ```\/ _.,_ ''-._
20:56:53 ( ' , .-` | `, ) Running in standalone mode
20:56:53 |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
20:56:53 | `-._ `._ / _.-' | PID: 17809
20:56:53 `-._ `-._ `-./ _.-' _.-'
20:56:53 |`-._`-._ `-.__.-' _.-'_.-'|
20:56:53 | `-._`-._ _.-'_.-' | http://redis.io
20:56:53 `-._ `-._`-.__.-'_.-' _.-'
20:56:53 |`-._`-._ `-.__.-' _.-'_.-'|
20:56:53 | `-._`-._ _.-'_.-' |
20:56:53 `-._ `-._`-.__.-'_.-' _.-'
20:56:53 `-._ `-.__.-' _.-'
20:56:53 `-._ _.-'
20:56:53 `-.__.-'
20:56:53
20:56:5317908:M 05 Jun 20:56:53.315 # Server started, Redis version 3.0.2
20:56:5317908:M 05 Jun 20:56:53.316 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix
this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this
to take effect.
20:56:5317908:M 05 Jun 15:48:57.316 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create
latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled'
as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
20:56:5317908:M 05 Jun 15:48:57.316 * The server is now ready to accept connections on port 6379