Skip to content

필사 모드: Redis DB Installation Guide on Ubuntu

English
0%
정확도 0%
💡 왼쪽 원문을 읽으면서 오른쪽에 따라 써보세요. Tab 키로 힌트를 받을 수 있습니다.
원문 렌더가 준비되기 전까지 텍스트 가이드로 표시합니다.

Introduction to Redis

[Redis](https://redis.io/) is an in-memory database in the NoSQL family that stores data in memory. It provides high availability and can be scaled through clustering.

Install Redis

Installing Redis as a standalone instance on Ubuntu is very straightforward.

sudo apt install redis-server

Check Version

When installed via the apt package manager, Redis version 6.0.16 is installed.

redis-server --version

Redis server v=6.0.16 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=a3fdef44459b3ad6

Check Port

Redis uses port 6379 by default.

netstat -nlpt | grep 6379

tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 15184/redis-server

redis-cli

Entering the `redis-cli` command launches a shell application that allows you to control Redis from the CLI.

$ redis-cli

127.0.0.1:6379> help

redis-cli 6.0.16

To get help about Redis commands type:

"help @<group>" to get a list of commands in <group>

"help <command>" for help on <command>

"help <tab>" to get a list of possible help topics

"quit" to exit

The commands are very simple. You can store a value for a given key using `set`, and retrieve the value of a specified key using `get`. You can delete data for a specified key using the `del` command.

127.0.0.1:6379> set name testname

OK

127.0.0.1:6379> get name

"testname"

127.0.0.1:6379> keys *

1) "name"

127.0.0.1:6379> del name

(integer) 1

127.0.0.1:6379> keys *

(empty array)

Quiz

Learn how to install Redis DB on Ubuntu.

When installed via the apt package manager, Redis version 6.0.16 is installed.

Redis uses port 6379 by default. redis-cli Entering the redis-cli command launches a shell

application that allows you to control Redis from the CLI. The commands are very simple.

현재 단락 (1/33)

[Redis](https://redis.io/) is an in-memory database in the NoSQL family that stores data in memory. ...

작성 글자: 0원문 글자: 1,493작성 단락: 0/33