在CentOS上配置DolphinScheduler(通常被称为Dolphin)涉及多个步骤,包括安装必要的软件包、配置环境变量、初始化数据库、启动服务以及访问管理界面。以下是一些配置技巧和步骤:
tar -zxvf 命令解压下载的tar.gz包到指定目录,例如 /opt。bin/env/dolphinscheduler_env.sh 文件,设置数据库连接信息和其他环境变量。export DATABASE=mysql
export SPRING_PROFILES_ACTIVE=database
export SPRING_DATASOURCE_URL="jdbc:mysql://localhost:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8&useSSL=false"
export SPRING_DATASOURCE_USERNAME=root
export SPRING_DATASOURCE_PASSWORD=root
export JAVA_HOME=/path/to/your/jdk
sh script/create-dolphinscheduler.sh
bin 目录,运行安装脚本进行安装。./install.sh
http://your_server_ip:12345/dolphinscheduler,使用默认的用户名 admin 和密码 dolphinscheduler 登录。免密登录:
useradd -m dolphinscheduler
passwd dolphinscheduler
ssh-keygen -t rsa -P ''
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
防火墙配置:
firewall-cmd --zone=public --add-port=12345/tcp --permanent
firewall-cmd --reload
时钟同步:
chrony、ntp 等。高级配置:
以上步骤和技巧应该能帮助你在CentOS上成功配置DolphinScheduler。如果在配置过程中遇到任何问题,请参考官方文档或寻求社区帮助。