标签:emctl a* emc jre star ble img load ansi
安装jdk
yum -y list java* yum search jdk 寻找包
yum install -y java-1.8.0-openjdk.x86_64
yum 安装的jdk路径在 /usr/lib/jvm/
**通过yum来安装**
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install jenkins
systemctl jenkins start //启动jenkins服务
检查 /etc/init.d/Jenkins 文件(可通过vi编辑器修改)中JDK路径是否与本地路径一致
/usr/lib/jvm/jre-1.8.0-openjdk/bin/java 加入
接下来就是访问网址,本地访问http://localhost:8080
按照提示来操作
新建任务 选择构建一个自由风格 选择参数构建
执行时候报没有权限 把jenkins 改为root
[root@baiduyun ansible]# cat /etc/sysconfig/jenkins |grep root
JENKINS_USER="root"
chown -R root:root /var/lib/jenkins
chown -R root:root /var/cache/jenkins
chown -R root:root /var/log/jenkins
systemctl restart jenkins
标签:emctl a* emc jre star ble img load ansi
原文地址:https://blog.51cto.com/12328206/2428266