1:安裝redis
從官網(wǎng)下載壓縮包 https://redis.io/download
這里選擇macOS x86_64

image.png
2. 解壓
拷貝到你日常工作的目錄后解壓,解壓后效果如下圖:

image.png
3. 啟動(dòng)
打開(kāi)terminal 進(jìn)入redis-stack-server-6.2.4-v3.catalina.x86_64的bin目錄,通過(guò)redis-server啟動(dòng),輸入命令
./redis-server
看到如下內(nèi)容,表示啟動(dòng)成功
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