bin/maxwell --user='maxwell' --password='密码' --host=' IP' --producer=kafka --kafka.bootstrap.servers=localhost:9092 --kafka_topic=maxwell
bin/maxwell --user='maxwell' --password='密码' --host='ip' --producer=stdout
docker run -it --rm zendesk/maxwell bin/maxwell --user='maxwell' --password='mima' --host='ip' --producer=kafka \
--kafka.bootstrap.servers=localhost:9092 --kafka_topic=maxwell
安装源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
yum install -y yum-utils device-mapper-persistent-data lvm2 --skip-broken
# 设置docker镜像源
yum-config-manager \
--add-repo \
https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sed -i 's/download.docker.com/mirrors.aliyun.com\/docker-ce/g' /etc/yum.repos.d/docker-ce.repo
yum makecache fast
yum install -y docker-ce
systemctl start docker # 启动docker服务
systemctl stop docker # 停止docker服务
systemctl restart docker # 重启docker服务
docker pull zendesk/maxwell