| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 
 | root@ubuntu2204:~
 Usage: ./redis-server [/path/to/redis.conf] [options] [-]
 ./redis-server - (read config from stdin)
 ./redis-server -v or --version
 ./redis-server -h or --help
 ./redis-server --test-memory <megabytes>
 ./redis-server --check-system
 
 Examples:
 ./redis-server (run the server with default conf)
 echo 'maxmemory 128mb' | ./redis-server -
 ./redis-server /etc/redis/6379.conf
 ./redis-server --port 7777
 ./redis-server --port 7777 --replicaof 127.0.0.1 8888
 ./redis-server /etc/myredis.conf --loglevel verbose -
 ./redis-server /etc/myredis.conf --loglevel verbose
 
 Sentinel mode:
 ./redis-server /etc/sentinel.conf --sentinel
 
 
 root@ubuntu2204:~
 8030:C 14 May 2024 07:54:18.370
 8030:C 14 May 2024 07:54:18.370 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
 8030:C 14 May 2024 07:54:18.370 * Redis version=7.2.4, bits=64, commit=00000000, modified=0, pid=8030, just started
 8030:C 14 May 2024 07:54:18.370 * Configuration loaded
 8030:M 14 May 2024 07:54:18.371 * Increased maximum number of open files to 10032 (it was originally set to 1024).
 8030:M 14 May 2024 07:54:18.371 * monotonic clock: POSIX clock_gettime
 _._
 _.-``__ ''-._
 _.-``    `.  `_.  ''-._           Redis 7.2.4 (00000000/0) 64 bit
 .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 8030
 `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           https://redis.io
 `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
 `-._    `-._`-.__.-'_.-'    _.-'
 `-._    `-.__.-'    _.-'
 `-._        _.-'
 `-.__.-'
 
 8030:M 14 May 2024 07:54:18.373 * Server initialized
 8030:M 14 May 2024 07:54:18.373 * Ready to accept connections tcp
 
 
 WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
 
 root@ubuntu2204:~
 root@ubuntu2204:~
 vm.overcommit_memory = 1
 
 
 root@ubuntu2204:~
 1024:C 15 May 2024 06:11:01.266 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
 1024:C 15 May 2024 06:11:01.266 * Redis version=7.2.4, bits=64, commit=00000000, modified=0, pid=1024, just started
 1024:C 15 May 2024 06:11:01.266 * Configuration loaded
 1024:M 15 May 2024 06:11:01.266 * Increased maximum number of open files to 10032 (it was originally set to 1024).
 1024:M 15 May 2024 06:11:01.266 * monotonic clock: POSIX clock_gettime
 _._
 _.-``__ ''-._
 _.-``    `.  `_.  ''-._           Redis 7.2.4 (00000000/0) 64 bit
 .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 1024
 `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           https://redis.io
 `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
 `-._    `-._`-.__.-'_.-'    _.-'
 `-._    `-.__.-'    _.-'
 `-._        _.-'
 `-.__.-'
 
 1024:M 15 May 2024 06:11:01.269 * Server initialized
 1024:M 15 May 2024 06:11:01.270 * Loading RDB produced by version 7.2.4
 1024:M 15 May 2024 06:11:01.270 * RDB age 77247 seconds
 1024:M 15 May 2024 06:11:01.270 * RDB memory usage when created 0.83 Mb
 1024:M 15 May 2024 06:11:01.270 * Done loading RDB, keys loaded: 0, keys expired: 0.
 1024:M 15 May 2024 06:11:01.270 * DB loaded from disk: 0.001 seconds
 1024:M 15 May 2024 06:11:01.270 * Ready to accept connections tcp
 
 
 root@ubuntu2204:~
 State     Recv-Q     Send-Q         Local Address:Port         Peer Address:Port    Process
 LISTEN    0          128                  0.0.0.0:22                0.0.0.0:*        users:(("sshd",pid=809,fd=3))
 LISTEN    0          511                127.0.0.1:6379              0.0.0.0:*        users:(("redis-server",pid=1024,fd=6))
 LISTEN    0          4096           127.0.0.53%lo:53                0.0.0.0:*        users:(("systemd-resolve",pid=761,fd=14))
 LISTEN    0          128                     [::]:22                   [::]:*        users:(("sshd",pid=809,fd=4))
 LISTEN    0          511                    [::1]:6379                 [::]:*        users:(("redis-server",pid=1024,fd=7))
 
 root@ubuntu2204:~
 127.0.0.1:6379> ping
 PONG
 127.0.0.1:6379>
 
 |