安装rundeck
#前提:
#安装准备:
#关闭防火墙和selinux以及NetworkManager
systemctl stop firewalld
systemctl disable firewalld
systemctl stop NetworkManager
systemctl disable NetworkManager
sed -i.bak 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
setenforce 0
1、安装jdk1.8以上版本
#1、安装jdk1.8以上版本
查看可安装的java1.8.0版本
yum --showduplicate list java* | grep 1.8.0
#安装openjdk-1.8.0.262版本
yum install java-1.8.0-openjdk-1.8.0.262.b10-1.el7.x86_64 -y
java -version
2、安装rundeck 3.2.8
#下载安装包及其秘钥
wget https://dl.bintray.com/rundeck/rundeck-rpm/rundeck-3.2.8.20200608-1.noarch.rpm
rpm --import http://rundeck.org/keys/BUILD-GPG-KEY-Rundeck.org.key
#可能会报错
error: http://rundeck.org/keys/BUILD-GPG-KEY-Rundeck.org.key: key 1 not an armored public key.
#这是由于密钥文件末尾缺少换行符所致
#解决办法:把密钥文件下载到本地,再把换行符加上到秘钥文件中
wget http://rundeck.org/keys/BUILD-GPG-KEY-Rundeck.org.key
sed -i -e '$a\' BUILD-GPG-KEY-Rundeck.org.key
rpm --import BUILD-GPG-KEY-Rundeck.org.key
rpm -ivh rundeck-3.2.8.20200608-1.noarch.rpm
#替换掉配置文件中的localhost,否则会导致登录不进去
vim /etc/rundeck/rundeck-config.properties
#grails.serverURL=http://localhost:4440 改为-->grails.serverURL=http://你的主机ip:4440
#设置开机自启动rundeck
systemctl enable rundeckd.service
systemctl start rundeckd.service