A second project environment has been set up recently and a Redis database has been built
So I learned the next
Redis is one of the most popular NoSQL systems today, and it is a key-value storage system. Similar to memcached, but largely compensates for the lack of memcached, which supports storing more value types, including string, list, set, Zset, and hash. These data types support Push/pop, Add/remove, and intersection sets and differences, and richer operations. Based on this, Redis supports sorting in a variety of different ways. Redis data is cached in the computer's memory and periodically writes the updated data to disk or writes the modification to the appended record file.
Redis website Address: http://www.redis.io/
1, download the source code, unzip and compile the source code.
wget http://download.redis.io/releases/redis-2.8. 3 . Tar.gztar xvf Redis-2.8. 3 . TAR.GZCD Redis-2.8. 3 Make
CD src
2, after the completion of the compilation, in the SRC directory, there are three executable files Redis-server, Redis-benchmark, Redis-cli and redis.conf and redis-2.8.3 directory below the redis.conf, Copy these 4 files to
/usr/redis, down here.
mkdir/usr/rediscp redis-server /usr/rediscp redis-benchmark/usr/rediscp redis-cli /usr//redis-2.8. 3/redis.conf /usr//usr/redis
3, execute Redis-server command, start Redis service
[5916] Sep 23:02:28.028 # warning:no config file specified, using the default Config. In order to specify a config file use./redis-server/path/to/redis.conf
[5916] Sep 23:02:28.028 # Creating Server TCP listening socket *:6379:bind:address already in use
[Email protected]1314 redis]$./redis-CLI127.0. 0.1:6379
That means it's starting up!
4. Commissioning
127.0. 0.1:6379> set key valueok127.0. 0.1:6379> get key"value"127.0. 0.1:6379
Linux Redis Installation