Redis 3.0.5 on the Linux installation and configuration
1. Download the installation package
[root@mylab]# wget http://download.redis.io/releases/redis-3.0.5.tar.gz
2. Compilation and installation
[root@mylab]# yum install gcc tcl
[root@mylab]# tar -zxf redis-3.0.5.tar.gz
[root@mylab]# cd redis-3.0.5
[root@mylab]# make
[root@mylab]# make test
[root@mylab]# sudo make install
3. To start the server
[root@mylab]# redis-server
or
[root@mylab]# redis-server /path/to/redis.conf
(6379-port to open)
4. The client of installation and startup
1)Client installation(the same as above)
2)Start the client
[root@mylab]# redis-cli -h 192.168.122.18
redis> set foo bar
OK
redis> get foo
"bar"