Jenkins安装文档
参考链接:https://www.cnblogs.com/jwrwst/p/6520114.html
一、下载安装包
Jdk安装包官网下载链接
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
tomcat安装包官网下载链接
https://tomcat.apache.org/download-70.cgi
Jenkins的war包下载
四、安装tomcat
1、安装完成jenkins之后可以使用ip+端口的方式直接访问web界面,我们为了统一管理使用域名的方式进行访问,所以需要安装tomcat服务
[[email protected] package]# tar -xvzf apache-tomcat-7.0.85.tar.gz
[[email protected] package]# cp -r apache-tomcat-7.0.85 /usr/local/tomcat
2、启动tomcat
[[email protected] bin]# ./startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /data/jdk/jdk1.8.0_144
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
[[email protected] bin]#
3、查看启动端口:
[[email protected] bin]# netstat -nultp|grep 8080
tcp 0 0 :::8080 :::* LISTEN 25959/java
[[email protected] bin]#
4、测试访问:使用ip+端口的方式访问
安装jenkins
将tomcat根目录下的东西全部删除放上jenkins.war包
[[email protected] webapps]# rm -rf *
[[email protected] webapps]# ls
jenkins.war
[[email protected] webapps]#
启动tomcat会自动将war包解压
首次访问需要输入密码,默认密码在/root/.jenkins/secrets/initialAdminPassword
安装插件
创建用户完毕之后就可以正常使用jenkins了
Linux下安装maven
https://www.cnblogs.com/jimmy-muyuan/p/7895933.html
export MAVEN_HOME=/data/apache-maven-3.5.2
export PATH=$PATH:$MAVEN_HOME/bin
http://blog.csdn.net/tengdazhang770960436/article/details/53842604
原文地址:https://www.cnblogs.com/bazingafraser/p/8490923.html