Redis is a key-value storage system. Redis is an open source, support network, memory based, key value pair storage database, written using ANSI C. Similar to the memcached, but the biggest difference with memcached is that one is only temporarily cached, one can be permanently cached, at least my understanding is that ha. I have just begun to contact, I hope you friends to guide.
The following is to install Redis try,
Environment: CentOS release 6.3 (Final) +redis-2.8.10
Cd/usr/local/src
wget http://download.redis.io/releases/redis-2.8.10.tar.gz
Tar zxf redis-2.8.10.tar.gz
CD redis-2.8.10
Make && make install
The following is a partial configuration of the compile-time default make:
To copy the configuration file to the/etc directory, edit the configuration file vi/etc/redis.conf modify the following configuration
Modify Daemonize No to daemonize yes -------> The protection process runs
Modify dir./For dir/usr/local -------> This is redis compile installation default directory
Modify AppendOnly No to AppendOnly yes ---------> whether to log records after each update operation
start redis:redis-server/etc/redis.conf.
View Redis Health: lsof-n | grep redis or lsof-i:6379
The following figure, and so on, you can view the Redis health.
to this, Redis compilation installation is complete.
Simple test Redis server runs and shuts down has started automatically:
redis-cli set fucking you
redis-cli get Fu cking