Note/开发工具/Redis基本命令.md

26 lines
274 B
Markdown
Raw Normal View History

2023-08-31 11:30:31 +08:00
在 HomeBrew 中启动 Redis
```shell
brew services start redis
```
在 HomeBrew 中关闭Redis
```shell
brew services node redis
```
进入 Redis 命令行工具
```shell
redis-cli
```
退出 Redis 命令工具
```shell
quit
```
切换数据库
```sql
select 序号;