Files
tldr/pages.zh/common/redis-server.md

24 lines
623 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# redis-server
> 持久化键值数据库。
> 更多信息:<https://redis.io>。
- 启动 Redis 服务器使用默认端口6379并将日志写入 `stdout`
`redis-server`
- 启动 Redis 服务器,使用默认端口,作为后台进程:
`redis-server --daemonize yes`
- 启动 Redis 服务器,使用指定端口,作为后台进程:
`redis-server --port {{port}} --daemonize yes`
- 使用自定义配置文件启动 Redis 服务器:
`redis-server {{path/to/redis.conf}}`
- 启动 Redis 服务器并启用详细日志记录:
`redis-server --loglevel {{warning|notice|verbose|debug}}`