daemonize
默认情况下Redis不在后台运行.需要在后台运行修改此参数
pidfile
Redis默认运行的pid文件,如果有多个Redis指定不同的位置
port
默认端口号6379
logfile
配置log文件地址,默认使用标准输出
dir
数据库镜像文件路径
--其它参数见后续博文^_^
启动Redis
如果不指定后台启动默认Redis启动打印如下信息:
[mysql@localhost redis-2.8.11]$ src/redis-server
[5338] 21 Jul 17:19:02.899 # Warning: no config file specified, using the default config. In order to specify a config file use src/redis-server /path/to/redis.conf
[5338] 21 Jul 17:19:02.900 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
[5338] 21 Jul 17:19:02.900 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
[5338] 21 Jul 17:19:02.900 # Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.8.11 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in stand alone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 5338
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
..................
..................
..................