自动化集成工具-jenkins简单安装
一、jenkins 安装需要使用jdk_1.8及以上的版本,不然可能会安装失败。java 默认使用的最新的版本jdk集成。 [root@localhost ~]# yum install -y java 二、安装需要的jenkins 的repo源,自带的yum可能没有。 [root@localhost ~]# wget -O /etc/yum.repos.d/jenkins.repo http://jenkins-ci.org/redhat/jenkins.repo 要以不安全的方式连接至 jenkins.io,使用“--no-check-certificate”。 报错,根据提示添加即可 [root@localhost ~]# wget -O /etc/yum.repos.d/jenkins.repo http://jenkins-ci.org/redhat/jenkins.repo --no-check-certificate 安装jenkins-ci.org.key [root@localhost ~]# rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key 安装成功,启动jenkins服务,默认启动是8080端口,建议开机自启动。本机可能防火墙,可以设置过滤,没有使用,尽量关闭。 [root@localhost ~]# systemctl start jenkins [root@localhost ~]# systemctl stop firewalld.service [root@localhost ~]# systemctl start jenkins [root@localhost ~]# systemctl start jenkinsystemctl stop firewalld.service^C [root@localhost ~]# systemctl stop firewalld.service [root@localhost ~]# systemctl disable firewalld.service Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. http://192.168.70.4:8080  [root@localhost ~]# cat /var/lib/jenkins/secrets/initialAdminPassword e58fe8f6eb7741558fe24dd03acb0bbf 选择左侧安装默认的插件 [root@localhost ~]# 设置密码和邮箱安装完成