Linux下Redis默认安装位置:
usr/local/bin
1、基本配置
- 单位
- Includes
- Modules
2、网络 Network
# 默认绑定IP
bind 127.0.0.1 -::1
# 保护模式(默认开启)
protected-mode yes
# 默认端口
port 6379
3、通用 General
# 以守护进程(后台)方式运行:默认为 no;需要自已开启,设为 yes
daemonize no
# 如果以后台的方式运行,需要指定一个pid文件
pidfile /var/run/redis_6379.pid
# 日志级别
# Specify the server verbosity level.
# This can be one of:
# debug (a lot of information, useful for development/testing) // 用于开发/