airflow一般以rabbitMQ或redis作为broker,rabbitMQ安装比较复杂,故本次选了redis
yum -y install redis sudo vim /etc/redis.conf #bind 127.0.0.1 // 注释掉,使redis允许远程访问 #修改密码为airflow #requirepass foobared requirepass airflow #开启redis服务 systemctl start redis
或
service redis start
redis常用命令
本地访问 redis-cli 远程访问 redis-cli -h 127.0.0.1 -p 6379 -a "mypass"