Centos7安装jenkins

0丶安装java

yum install java -y 

1丶jenkins下载安装

test -d /tools || mkdir /tools
wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat-stable/jenkins-2.89.4-1.1.noarch.rpm
rpm -ivh jenkins-2.89.4-1.1.noarch.rpm 

2丶启动

systemctl start jenkins
systemctl enable jenkins 

3丶验证登录,jenkins默认端口是8080,修改端口配置文件/etc/sysconfig/jenkins

ss -antlup | grep 8080
http://ip:8080

4丶初始密码

cat /var/lib/jenkins/secrets/initialAdminPassword


5丶选择安装所有插件

6丶设置用户名和密码


7丶jenkins生成的目录详解

#rpm -ql jenkins
/etc/init.d/jenkins                //jenkins的启动文件
/etc/logrotate.d/jenkins		   //日志切割
/etc/sysconfig/jenkins             //jenkins的配置文件
/usr/lib/jenkins                   
/usr/lib/jenkins/jenkins.war       //jenkins的程序war包
/usr/sbin/rcjenkins                //jenkins的为二进制文件
/var/cache/jenkins                 //jenkins的程序文件,运行程序解压出来的
/var/lib/jenkins                   //jenkins的主目录
/var/log/jenkins                   //jenkins的日志文件

8丶设置并发数量,系统管理===>系统配置

posted @ 2018-05-30 18:48  你很棒  阅读(291)  评论(0编辑  收藏  举报