标签:xmx start bsp exp chown size mkdir launcher bin
#!/bin/bash
user=root
host=bdcv29
#安装rundeck,使用root用户
scp rundeck-launcher-2.6.9.jar $host:/home/$user;
ssh -t -p 22 $host "
sudo su
cd /opt
mkdir /opt/rundeck
cp -r /home/$user/rundeck-launcher-2.6.9.jar /opt/rundeck
chown -R root:root /opt/rundeck
java -XX:MaxPermSize=256m -Xmx1024m -jar /opt/rundeck/rundeck-launcher-2.6.9.jar
#sudo sh -c ‘echo "export RDECK_BASE=/opt/rundeck" /etc/profile ‘
echo "export RDECK_BASE=/opt/rundeck" >> /etc/profile
source /etc/profile
sh /opt/rundeck/server/sbin/rundeckd restart
"
标签:xmx start bsp exp chown size mkdir launcher bin
原文地址:http://www.cnblogs.com/sunt9/p/6690543.html