kettle安装
-
安装java环境
mkdir /data/javaln -s /data/java/ /opt/cd /opt/javatar zxvf jdk-8u171-linux-x64.tar.gz
#javaexport JAVA_HOME=/opt/java/jdk1.8.0_171export JRE_HOME=$JAVA_HOME/jreexport CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATHexport PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
source /etc/profilejava -version
-
解压安装kettle
#下载安装webkitgtk(二选一)#外网下载wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/matthewdva:/build:/EPEL:/el7/RHEL_7/x86_64/webkitgtk-2.4.9-1.el7.x86_64.rpmyum -y install webkitgtk-2.4.9-1.el7.x86_64.rpm
cd /optunzip pdi-ce-9.4.0.0-343.zipmkdir /data/kettlemv data-integration/ /data/kettle/ln -s /data/kettle/data-integration/ /opt/kettle/# 生成加密密码cd /opt/kettle/data-integration./encr.sh -carte asd123456# 修改密码配置文件vim /opt/kettle/data-integration/pwd# Please note that the default password (cluster) is obfuscated using the Encr script provided in this release# Passwords can also be entered in plain text as before# #cluster: OBF:1v8w1uh21z7k1ym71z7i1ugo1v9q cluster: OBF:thhdhdfhafasdfagaghfhgfjfkghggdfgdfe
-
设置开机自启
cat /usr/lib/systemd/system/kettle.service[Unit]Description=kettleAfter=network.target syslog.target[Service]PrivateTmp=trueRestart=alwaysType=simpleEnvironment="JAVA_HOME=/opt/java/jdk1.8.0_171"#WorkingDirectory=/data/cyxnsyh/ExecStart=/opt/kettle/data-integration/carte.sh 192.168.2.186 8080#ExecStop=/usr/bin/kill -15 [Install]WantedBy=multi-user.target
systemctl daemon-reloadsystemctl start kettle
-
防火墙放行
firewall-cmd --zone=public --permanent --add-port=8080/tcpfirewall-cmd --reload
来源地址:https://blog.csdn.net/lx_1314/article/details/133635706