Jenkins的安装、部署、启动(完整教程)

Jenkins的搭建

在这里,我们只讲怎么搭建
1: 首先要用一台linux的服务器
2: 安装的有jdk,并配置过jdk的环境变量

1、安装jdk
我安装的是jdk8,此处就不多说了,自己百度哈,很简单

2、安装jenkins

首先依次执行如下三个命令:
2.1、导入镜像:

sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo

在这里插入图片描述
2.2、导入公钥

sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

在这里插入图片描述
2.3、安装jenkins:

yum install jenkins

在这里插入图片描述
2.4、修改配置文件

vi /etc/sysconfig/jenkins

修改这部分:

## Default:     8080
## ServiceRestart: jenkins
#
# Port Jenkins is listening on.
# Set to -1 to disable
#
JENKINS_PORT="8091"//修改这部分

## Type:        string
## Default:     ""
## ServiceRestart: jenkins

2.5、启动jenkins

[root@VM_0_13_centos local]# systemctl  start  jenkins
Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.

2.6、查看jenkins的启动状态

[root@VM_0_13_centos local]# systemctl start jenkins
Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.
[root@VM_0_13_centos local]# systemctl status jenkins
● jenkins.service - LSB: Jenkins Automation Server
   Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
   Active: failed 
  • 0
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值