http://www.07net01.com/linux/Jenkinsshiyongjingyantan4_chuangjianJob__662274_1382442168.html
http://birdinroom.blog.51cto.com/7740375/1404930
http://my.oschina.net/lanybass/blog/61397
切换到root用户
Installation of jenkins:
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key
sudo yum install jenkins
Installation of Java:
sudo yum install java
Start jenkins service:
sudo service jenkins start/stop/restart
安装目录: /var/lib/jenkins
jenkins初始化文件: /etc/init.d/jenkins
jenkins系统配置文件: /etc/sysconfig/jenkins
jenkins系统日志: /var/log/jenkins/jenkins.log
打开/etc/sysconfig/jenkins,更改JENKINS_AJP_PORT="8209"和JENKINS_PORT="8280"
浏览器访问:http://10.64.10.21:8280
设置用户管理:
系统管理 -> Configure Global Security :设置后系统管理中就会多一项“用户管理”
勾选“jenkins专用数据库”和“安全矩阵”
添加需要用到的插件:
系统管理 -> 管理插件 -> 可选插件
Git Plugin 集成git
GitHub Plugin
Email-ext 用来发邮件
Extended Choice Parameter Plugin 从外部读文件
在linux上安装maven:http://www.blogjava.net/caojianhua/archive/2011/04/02/347559.html
在linux上安装git:http://blog.csdn.net/benkaoya/article/details/8082032
系统管理 -> 系统设置:设置MAVEN_HOME
初始化空的git repository:
cd /var/lib/jenkins/workspace/backend_dev_oauth
git init
在linux上安装tomcat,更改以下文件,并且tomcat端口要设置成8080,改完后要重新启动
vim /usr/local/tomcat/conf/tomcat-users.xml
<tomcat-users>
<role rolename="tomcat"></role>
<role rolename="manager-gui"></role>
<role rolename="manager-script"></role>
<role rolename="admin-gui"></role>
<user username="tomcat" password="tomcat" roles="tomcat,manager-gui,admin-gui,manager-script" />
</tomcat-users>
jenkins命令:
切换成jenkins用户:sudo su jenkins -s /bin/bash
http://birdinroom.blog.51cto.com/7740375/1404930
http://my.oschina.net/lanybass/blog/61397
切换到root用户
Installation of jenkins:
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key
sudo yum install jenkins
Installation of Java:
sudo yum install java
Start jenkins service:
sudo service jenkins start/stop/restart
安装目录: /var/lib/jenkins
jenkins初始化文件: /etc/init.d/jenkins
jenkins系统配置文件: /etc/sysconfig/jenkins
jenkins系统日志: /var/log/jenkins/jenkins.log
打开/etc/sysconfig/jenkins,更改JENKINS_AJP_PORT="8209"和JENKINS_PORT="8280"
浏览器访问:http://10.64.10.21:8280
设置用户管理:
系统管理 -> Configure Global Security :设置后系统管理中就会多一项“用户管理”
勾选“jenkins专用数据库”和“安全矩阵”
添加需要用到的插件:
系统管理 -> 管理插件 -> 可选插件
Git Plugin 集成git
GitHub Plugin
Email-ext 用来发邮件
Extended Choice Parameter Plugin 从外部读文件
在linux上安装maven:http://www.blogjava.net/caojianhua/archive/2011/04/02/347559.html
在linux上安装git:http://blog.csdn.net/benkaoya/article/details/8082032
系统管理 -> 系统设置:设置MAVEN_HOME
初始化空的git repository:
cd /var/lib/jenkins/workspace/backend_dev_oauth
git init
在linux上安装tomcat,更改以下文件,并且tomcat端口要设置成8080,改完后要重新启动
vim /usr/local/tomcat/conf/tomcat-users.xml
<tomcat-users>
<role rolename="tomcat"></role>
<role rolename="manager-gui"></role>
<role rolename="manager-script"></role>
<role rolename="admin-gui"></role>
<user username="tomcat" password="tomcat" roles="tomcat,manager-gui,admin-gui,manager-script" />
</tomcat-users>
jenkins命令:
切换成jenkins用户:sudo su jenkins -s /bin/bash