标签:conf 安装文件 amd 命令 start cal -o sysconf sbin
下载安装包https://pkg.jenkins.io/redhat-stable/
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/jenkins
candidates="
/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 8080
LISTEN 0 50 :::8080 :::* users:(("java",pid=17646,fd=165))
访问http://ip:8080/
标签:conf 安装文件 amd 命令 start cal -o sysconf sbin
原文地址:https://blog.51cto.com/jinkcloud/2407482