Jenkins安装
1. 下载RPM包
官网:https://jenkins.io/download/
清华镜像站:https://mirrors.tuna.tsinghua.edu.cn/jenkins/ -- 推荐
2. 如果没有安装JAVA,需安装JAVA
[root@localhost ~]# yum install -y java
3. 安装Jenkins
[root@localhost ~]# rpm -ivh jenkins-2.204.2-1.1.noarch.rpm
4. Jenkins服务默认端口为8080,若发生冲突可修改配置文件
# 修改配置文件 /etc/sysconfig/jenkins
[root@localhost ~]# cat /etc/sysconfig/jenkins |grep JENKINS_PORT
JENKINS_PORT="10000"
5. 开启服务
[root@localhost ~]# systemctl start jenkins










网友评论