您现在的位置是:首页 > 文章详情

自动化集成工具-jenkins简单安装

日期:2019-08-21点击:656

一、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

![image](https://yqfile.alicdn.com/bbbe1abba26869aea80c513ae4cf57b5bef2e5df.png) [root@localhost ~]# cat /var/lib/jenkins/secrets/initialAdminPassword e58fe8f6eb7741558fe24dd03acb0bbf 选择左侧安装默认的插件 [root@localhost ~]# 

image
image

设置密码和邮箱
image
安装完成
image

原文链接:https://yq.aliyun.com/articles/715448
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章