请先确保本机安装了hiredis
sudo yum install hiredis-devel
修改 Makefile:
设置HIREDIS_INCLUDE
为hiredis
头文件所在位置
设置HIREDIS_LIB
为hiredis
静态库所在位置
DESCRIPTION:
- Redis monitor copy tool: monitor redis server indicated by src_host, src_port, src_auth and send to des server Parameters: -s: source server -d: destination server -v: show more information -h: help Example:
- ./redis-copy -s [email protected]:6379 -d [email protected]:6379 -v