CENTOS 安装 JDK, TOMCAT, ANT和 MAVEN
- 摘要:一,安装jdk?exportJAVA_HOME=/usr/java/jdk1.7.0_03?exportJRE_HOME=/usr/java/jdk1.7.0_03/jre?exportCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexportPATH=.:$JAVA_HOME/bin:$PATH二
- 标签:安装 jdk Tomcat CentOS Ant Maven
一,安装jdk
? export JAVA_HOME=/usr/java/jdk1.7.0_03
? export JRE_HOME=/usr/java/jdk1.7.0_03/jre
? export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=.:$JAVA_HOME/bin: $PATH
二,安装tomcat
? export TOMCAT_HOME=/usr/local/tomcat
? export CATALINA_HOME=/usr/local/tomcat
? export PATH= XXXXXXX:TOMCAT_HOME(在原有基础上面加)
Tomat常用的命令:
1,查看tomat进程: ps –ef
2, 启动服务:startup.sh
3,停止服务: shutdown.sh
4,功能合集:catalina.sh
三,安装ANT
export ANT_HOME=/usr/local/ant
export PATH= XXXXXXX: ANT_HOME(在原有基础上面加)
测试是否安装成功: ant –version
四,下载和安装maven
export M2_HOME=/usr/local/maven
PATH=:${M2_HOME}/bin: (在原有基础上面加)
测试: mvn -v