Rundeck3.2.0安装部署

rundeck3.2.0安装部署

下载解压

[root@JD /]# su - hadoop
[hadoop@JD ~]$ cd app/
[hadoop@JD app]$ mkdir rundeck
[hadoop@JD rundeck]$ wget https://dl.bintray.com/rundeck/rundeck-maven/rundeck-3.2.0-20191218.war

调整Xms MaxMetaspaceSize参数

[hadoop@JD rundeck]$ vi etc/profile
export RDECK_JVM="$RDECK_JVM -Xmx1024m -Xms1024m -XX:MaxMetaspaceSize=512m -server"

修改数据库为MySQL

[hadoop@JD config]$ cd server/config/
[hadoop@JD config]$ vi rundeck-config.properties
#dataSource.url = jdbc:h2:file:/home/hadoop/app/rundeck/server/data/grailsdb;MVCC=true
dataSource.url = jdbc:mysql://JD/rundeck?autoReconnect=true
dataSource.username = root
dataSource.password = mysqladmin
dataSource.driverClassName=com.mysql.jdbc.Driver

配置环境变量,生效

[hadoop@JD config]$ vi ~/.bashrc
export RDECK_BASE=/home/hadoop/app/rundeck
export PATH=$RDECK_BASE/bin:$PATH

[hadoop@JD config]$ source ~/.bashrc 

msql创建数据库
create database `rundeck`;

启动

[hadoop@JD rundeck]$ rm -f $RDECK_BASE/var/run/rundeckd.pid && $RDECK_BASE/server/sbin/rundeckd start

查看状态

[hadoop@JD sbin]$ $RDECK_BASE/server/sbin/rundeckd status
Status rundeckd: rundeckd is running (pid=21360, port=4440)

访问

http://JD:4440
admin/admin

你可能感兴趣的:(rundeck)