jenkins安装与配置
作者:互联网
- 方式一:
sudo wget -O /etc/yum.repos.d/jenkins.repo \
https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo dnf upgrade
# Add required dependencies for the jenkins package
sudo dnf install chkconfig java-devel
sudo dnf install jenkins
- 方式二:
wget http://pkg.jenkins-ci.org/redhat-stable/jenkins-2.7.3-1.1.noarch.rpm
rpm -ivh jenkins-2.156-1.1.noarch.rpm
vim /etc/sysconfig/jenkins
#修改配置
JENKINS_PORT="8080"
JENKINS_USER="root"
JENKINS_JAVA_CMD="/root/jdk1.8.0_111/bin/java"
systemctl start jenkins
ps -ef | grep jenkins
- 方式三:
wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war
java -jar jenkins.war
或
java -jar jenkins.war --httpPort=9090
浏览http://localhost:8080
标签:sudo,java,安装,配置,io,stable,jenkins,rpm 来源: https://blog.csdn.net/weixin_43824520/article/details/121786736