| 相關資源 | 網址 |
|---|---|
| 官方地址(網頁中 Command + F,輸入井號“#”,方便查看沒有注釋的行) | http://download.redis.io/redis-stable/redis.conf |
| 配置選項 — Redis 命令參考 | http://redisdoc.com/configure/index.html |
- 相關命令:
| 命令 | 作用 |
|---|---|
| config help | 1. CONFIG <subcommand> arg arg ... arg. Subcommands are: 2. GET <pattern> -- Return parameters matching the glob-like <pattern> and their values. 3. SET <parameter> <value> -- Set parameter to value. 4. RESETSTAT -- Reset statistics reported by INFO. 5. REWRITE -- Rewrite the configuration file. |
| config get * |
- redis.conf 配置項
| redis.conf 配置項 | 含義 |
|---|---|
| dbfilename dump.rdb | RDB 備份文件名 |
| dir ./ | RDB 備份文件保存的目錄,AOF 文件也在這個目錄下創建;必須指定為目錄,不能是一個文件名 |
| databases 16 | 設置數據庫數量;默認數據庫是 DB 0,通過命令:select <dbid> 切換數據庫 |
| appendonly no | |
| appendfilename "appendonly.aof" |
