jdk+apache-tomcat+jenkins+maven搭建
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jdk+apache-tomcat+jenkins+maven搭建相关的知识,希望对你有一定的参考价值。
环境redhat6.5
安装包:
apache-maven-3.5.2-bin.tar.gz
apache-tomcat-9.0.1.tar.gz
jdk-9.0.1_linux-x64_bin.rpm
jenkins-2.88-1.1.noarch.rpm
下载地址:
http://maven.apache.org/download.cgi maven下载
https://pkg.jenkins.io/redhat/ jenkins下载
http://tomcat.apache.org/download-70.cgi tomcat下载
http://www.oracle.com/technetwork/java/javase/downloads/index.html jdk下载
安装JDK
[[email protected] ~]# rpm -ivh jdk-9.0.1_linux-x64_bin.rpm
[[email protected] ~]# tail /etc/profile
unset i
unset -f pathmunge
export JAVA_HOME=/usr/local/java
export JRE_HOME=/usr/local/java/jre
export PATH=$PATH:/usr/local/java/bin
export CLASSPATH=./:/usr/local/java/lib:/usr/local/java/jre/lib
查看Java信息
[[email protected] ~]#java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
安装apache-tomcat
[[email protected] ~]tar -zxvf apache-tomcat-9.0.1.tar.gz -C /usr/local/tomcat
安装jenkins
[[email protected] ~]tar -zxvf jenkins-2.88-1.1.noarch.rpm
安装maven
[[email protected] ~]#apache-maven-3.5.2-bin.tar.gz
[[email protected] ~]#vim /etc/profile
加入以下内容:
export MAVEN_HOME=/tmp/python/apache-maven-3.5.2
export PATH=$MAVEN_HOME/bin:$PAT
重新加载环境变量
[[email protected] ~]#source /etc/profile
启动tomcat
[[email protected] ~]#/usr/local/tomcat/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: /usr/local/java/jre
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
浏览器窗口输入:http://192.168.112.119:8080/
可以访问tomcat
关闭tomcat
[[email protected] ~]#/usr/local/tomcat/bin/shutdown.sh
[[email protected] ~]#service jenkins start
[[email protected] ~]#/usr/local/tomcat/bin/startup.sh
浏览器输入http://192.168.112.119:8080/jenkins/
到这里最基础的搭建算是完成了,当然这个系统到这里并没完,后面还有很多需要配置的地方
本文出自 “12619984” 博客,请务必保留此出处http://12629984.blog.51cto.com/12619984/1980034
以上是关于jdk+apache-tomcat+jenkins+maven搭建的主要内容,如果未能解决你的问题,请参考以下文章