标签:bsp use war 时间 nbsp jar tomcat webapp cat
最近工作不饱和,正好有时间学习一下jenkins部署等。
1、出需要安装的包:
python2.7.9
apache-maven-3.5.0-bin.tar.gz
apache-tomcat-8.5.15.tar.gz
jdk-8u45-linux-x64.tar.gz
ansible-2.7.9.tar.gz等解压出来
2、环境变量
0.jdk安装
vi .bash_profile
export JAVA_HOME=$HOME/jdk1.8.0_45
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib/
export PATH=$JAVA_HOME/bin:$PATH
1.tomcat安装
tar -zxvf apache-tomcat-8.5.15.tar.gz
vi .bash_profile
export TOMCAT_PATH=$HOME/apache-tomcat-8.5.15
2.jenkins安装
mv jenkins.war /home/appuser/apache-tomcat-8.5.15/webapps/
vi .bash_profile
export JENKINS_HOME=/home/appuser/apache-tomcat-8.5.15/webapps/jenkins
source .bash_profile
3.maven安装
tar -zxvf apache-maven-3.5.0-bin.tar.gz
vi .bash_profile
export MAVEN_HOME=/home/appuser/apache-maven-3.5.0
export PATH=${MAVEN_HOME}/bin:${PATH}
source .bash_profile
最后呈现出的环境变量:
export PATH
export JAVA_HOME=$HOME/jdk1.8.0_45
export JRE_HOME=$JAVA_HOME/jre
#export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib/
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
export TOMCAT_PATH=$HOME/apache-tomcat-8.5.15
export JENKINS_HOME=/home/appuser/apache-tomcat-8.5.15/webapps/jenkins
export MAVEN_HOME=/home/appuser/apache-maven-3.5.0
export PATH=${MAVEN_HOME}/bin:${PATH}
4.ansible安装
5.启动tomcat
cd /home/appuser/apache-tomcat-8.5.15/bin
./startup.sh
标签:bsp use war 时间 nbsp jar tomcat webapp cat
原文地址:https://www.cnblogs.com/qyk1995/p/11725125.html