在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。如果在配置過程中遇到任何問題,請參考官方文檔或尋求社區幫助。