标签:jenkins
在CentOS 7上安装Jenkins
1、安装
前去Jenkins官网(https://pkg.jenkins.io/redhat-stable/)上有安装不走
2、安装java
yum remove java
然后可以安装openjdk
yum install java-1.7.0-openjdk
3、启动和停止
sudo service jenkins start/stop/restart
sudo chkconfig jenkins on (开机自启动)
4、Jenkins的默认设置
· Jenkins会随系统启动而启动。详情参照/etc/init.d/jenkins
· Jenkins会创建一个用户叫做jenkins, 如果你修改了user,则要修修改所属者:/var/log/jenkins,/var/lib/jenkins,/var/cache/jenkins
· 如果遇到问题,查看日志/var/log/jenkins/jenkins.log
· 配置文件/etc/sysconfig/jenkins
· 默认启用8080
标签:jenkins
原文地址:http://12665157.blog.51cto.com/12655157/1921898