本文共 1001 字,大约阅读时间需要 3 分钟。
yum -y localinstall jenkins-2.176.1-1.1.noarch.rpm
[root@jenkins ~]# rpm -ql jenkins /etc/init.d/jenkins/etc/logrotate.d/jenkins/etc/sysconfig/jenkins/usr/lib/jenkins/usr/lib/jenkins/jenkins.war/usr/sbin/rcjenkins/var/cache/jenkins/var/lib/jenkins/var/log/jenkins
[root@jenkins ~]# which java/usr/java/jdk1.8.0_212/bin/java
[root@jenkins ~]# vim /etc/init.d/jenkinscandidates="/etc/alternatives/java/usr/lib/jvm/java-1.8.0/bin/java/usr/lib/jvm/jre-1.8.0/bin/java/usr/lib/jvm/java-1.7.0/bin/java/usr/lib/jvm/jre-1.7.0/bin/java/usr/lib/jvm/java-11.0/bin/java/usr/lib/jvm/jre-11.0/bin/java/usr/lib/jvm/java-11-openjdk-amd64/usr/bin/java/usr/java/jdk1.8.0_212/bin/java"
[root@jenkins ~]# systemctl start jenkins[root@jenkins ~]# ss -tlnp | grep 8080LISTEN 0 50 :::8080 :::* users:(("java",pid=17646,fd=165))
访问http://ip:8080/
转载于:https://blog.51cto.com/jinkcloud/2407482