mac 安装启动 Redis6

1:安装redis

从官网下载压缩包 https://redis.io/download
这里选择macOS x86_64

image.png

2. 解压

拷贝到你日常工作的目录后解压,解压后效果如下图:


image.png

3. 启动

打开terminal 进入redis-stack-server-6.2.4-v3.catalina.x86_64bin目录,通过redis-server启动,输入命令

./redis-server

看到如下内容,表示启动成功

55130:C 13 Nov 2022 11:21:33.624 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
55130:C 13 Nov 2022 11:21:33.624 # Redis version=6.2.7, bits=64, commit=e6f67092, modified=0, pid=55130, just started
55130:C 13 Nov 2022 11:21:33.624 # Warning: no config file specified, using the default config. In order to specify a config file use ./redis-server /path/to/redis.conf
55130:M 13 Nov 2022 11:21:33.625 * Increased maximum number of open files to 10032 (it was originally set to 2560).
55130:M 13 Nov 2022 11:21:33.625 * monotonic clock: POSIX clock_gettime
55130:M 13 Nov 2022 11:21:33.627 # A key '__redis__compare_helper' was added to Lua globals which is not on the globals allow list nor listed on the deny list.
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 6.2.7 (e6f67092/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                  
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 55130
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           https://redis.io       
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

55130:M 13 Nov 2022 11:21:33.628 # Server initialized
55130:M 13 Nov 2022 11:21:33.628 * Ready to accept connections

你可能感兴趣的:(mac 安装启动 Redis6)