码迷,mamicode.com
首页 > Web开发 > 详细

jdk+apache-tomcat+jenkins+maven搭建

时间:2017-11-08 19:37:19      阅读:229      评论:0      收藏:0      [点我收藏+]

标签: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    

[root@localhost ~]# rpm -ivh  jdk-9.0.1_linux-x64_bin.rpm

[root@localhost ~]# 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信息

[root@localhost ~]#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

[root@localhost ~]tar -zxvf  apache-tomcat-9.0.1.tar.gz -C /usr/local/tomcat


安装jenkins

[root@localhost ~]tar -zxvf  jenkins-2.88-1.1.noarch.rpm


安装maven

[root@localhost ~]#apache-maven-3.5.2-bin.tar.gz


[root@localhost ~]#vim /etc/profile

加入以下内容:

export MAVEN_HOME=/tmp/python/apache-maven-3.5.2
export PATH=$MAVEN_HOME/bin:$PAT


重新加载环境变量

[root@localhost ~]#source /etc/profile


启动tomcat

[root@localhost ~]#/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

[root@localhost ~]#/usr/local/tomcat/bin/shutdown.sh

[root@localhost ~]#service jenkins start

[root@localhost ~]#/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搭建

标签:jdk+apache-tomcat+jenkins+maven搭建

原文地址:http://12629984.blog.51cto.com/12619984/1980034

(0)
(2)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!