多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 一 安装jenkins wget -O :下载并以不同的文件名保存 yum的repo中默认没有Jenkins,需要先将Jenkins存储库添加到yum repos,执行下面的命令: ~~~ sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo ~~~ ![](https://img.kancloud.cn/e5/a2/e5a2293a4c2a8c7d6b3163b2fdcdbaeb_897x310.png) 然后执行下面的命令:【默认安装目录 /var/lib/jenkins 】 ~~~ sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key ~~~ ![](https://img.kancloud.cn/80/8d/808dc06b0bd7cdff78e9135991a58425_911x261.png) 然后 安装Jenkins ~~~ yum install jenkins ~~~ ![](https://img.kancloud.cn/4c/4b/4c4bb516edc42822ccd81fe77206bcb2_1064x436.png) 启动jenkins ~~~ service jenkins start ~~~ ![](https://img.kancloud.cn/95/bd/95bd6a7d2618c6b896bc4ae289c54414_1127x276.png) ## 二、配置Jenkins图形化界面基础 ![](https://img.kancloud.cn/1a/e0/1ae099fe5939d39bdac575b5537f4591_900x581.png)![](https://img.kancloud.cn/6b/9d/6b9d9c7a07ebe72a8f9fdf7c789de78c_800x473.png) ![](https://img.kancloud.cn/27/ca/27ca2f3c068d1cceefbd701cdf227220_987x546.png) ![](https://img.kancloud.cn/45/b0/45b0f1317e6fdd73dc6c3b55748f1b67_800x584.png) ## 三 jenkins主目录介绍 ## 1 yum 安装jenkins默认根目录 ![](https://img.kancloud.cn/cb/dc/cbdc4c9102d55a8088362ae6385628cf_800x74.png) ## 2 jenkins所有目录 ![](https://img.kancloud.cn/da/86/da86b0c8acd4282cfea03256895e361e_800x297.png)