Get the App
SLTechnology News&Howtos  ›  Database  › 

Nosql redis-2.8.10 source code installation

Shulou Source: shulou.com Published: 2022-06-01 15:09:04 10月01日 Update

Redis introduction:

Redis is one of the most popular NOSQL systems, and it is a key-value storage system. Similar to Memcached, but largely compensating for the shortcomings of memcached, it supports relatively more value types of storage, including string, list, set, zset, and hash. These data types support push/pop, add/remove, and take intersection union and difference sets and richer operations. On this basis, redis supports a variety of different sorting methods. Redis data is cached in computer memory, and will periodically write updated data to disk or modify operations to additional record files.

Download: http://download.redis.io/releases/redis-2.8.10.tar.gz

Wget http://download.redis.io/releases/redis-2.8.10.tar.gz

Tar zxvf http://download.redis.io/releases/redis-2.8.10.tar.gz

Cd redis-2.8.10

Make

Ls src # compiles several command files at this time

Make PREFIX=path install # can install related command files to a specified path path, such as / usr/local/redis

Cp redis.conf / etc/

Vi / etc/redis.conf

Daemonize no = > daemonize yes # modify the redis configuration file and open yes

/ usr/local/redis/bin/redis-server / etc/redis.conf # launch redis

Netstat-ant | grep 6379 # View port. Default is 6379.

/ usr/local/redis/bin/redis-cli ping # Test redis and return PONG

[root@localhost redis-2.8.10] # / usr/local/redis/bin/redis-cli # client test

127.0.0.1 set kin 6379 > 1

OK

127.0.0.1 purl 6379 > get kin

"1"

127.0.0.1 purl 6379 > quit

Tags: File data support command type system storage test different large hot intersection memory cycle periodicity foundation client client difference way Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Tech Info MariaDB Redmi Huawei