http://kafka.apache.org/documentation.html#configuration Broker Configs 4个必填参数, broker.id Each broker is uniquely identified by a non-negative integer id broker唯一标识,broker可以在不同的host或port,但必须保证id唯一 log.dirs (/tmp/kafka-logs) 日志文件存放的目录 可以用逗号隔开多个目录,当创…
本文主要总结一下redis常用的配置参数的用法: 以下参数决定redis运行方式,默认前台运行,修改为yes可以让redis以后台守护进程方式运行 daemonize no 以下参数指定redis的pid文件,当redis以守护进程方式运行时,默认会把pid写入/var/run/redis.pid文件,可以修改 pidfile /var/run/redis.pid 以下参数指定Redis监听端口,默认为6379 port Tips:作者在自己的一篇博文中解释了为什么选用6379作为默认端口,因为…