Linux下JavaMavenTomcat的安裝
Linux下JavaMavenTomcat的安裝
1、安裝Java(此處假定安裝目錄位/usr/local)。1)下載jdk(jdk-7),下載地址如下:32位:/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.tar.gz。64位:/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz。下載命令(以64位為例)。$ ;cd ;/usr/local。$ ;sudo ;wget ;/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz。2)解壓到安裝目錄,使用如下命令。$ ;cd ;/usr/local。
導(dǎo)讀1、安裝Java(此處假定安裝目錄位/usr/local)。1)下載jdk(jdk-7),下載地址如下:32位:/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.tar.gz。64位:/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz。下載命令(以64位為例)。$ ;cd ;/usr/local。$ ;sudo ;wget ;/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz。2)解壓到安裝目錄,使用如下命令。$ ;cd ;/usr/local。
系統(tǒng)大全為您提供1、安裝Java(此處假定安裝目錄位/usr/local)1)下載jdk(jdk-7),下載地址如下:32位:/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.tar.gz64位:/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz下載命令(以64位為例):$?cd?/usr/local$?sudo?wget?/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz2)解壓到安裝目錄,使用如下命令:$?cd?/usr/local$?sudo?tar?-xf?jdk-7u67-linux-x64.tar.gz3)配置環(huán)境變量,修改/etc/profile文件?$?sudo?vim?/etc/profile在末尾添加如下內(nèi)容:?export?JAVA_HOME=/usrbk1.7.0_67??export?JRE_HOME=/usrbk1.7.0_67?/jre??export?CLAsspATH=.:$JAVA_HOMEb:$JRE_HOMEb:$CLAsspATH?export?PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH執(zhí)行如下命令:$?source?/etc/profile輸入java命令,看看是否生效,部分結(jié)果如下:$?javaUsage:?java?[-options]?class?[args...]???????????(to?execute?a?class)???or??java?[-options]?-jar?jarfile?[args...]???????????(to?execute?a?jar?file)where?options?include:????-d32??????????use?a?32-bit?data?model?if?available????-d64??????????use?a?64-bit?data?model?if?available????-server??to?select?the?"server"?VM??????????????????The?default?VM?is?server.??????????????????????-cp?
????-classpath???????????????????A?:?separated?list?of?directories,?JAR?archives,??????????????????and?ZIP?archives?to?search?for?class?files.????-D=2、安裝maven1)下載,下載命令如下:$?cd?/usr/local$?sudo?wget?/apache-mirror/maven/maven-3/3.2.2/binaries/apache-maven-3.2.2-bin.tar.gz2)解壓,命令如下:?$?cd?/usr/local$?sudo?tar?-xf?apache-maven-3.2.2-bin.tar.gz3)配置環(huán)境變量$?sudo?vim?/etc/profile在末尾添加如下內(nèi)容:export?M2_HOME=/usr/local/apache-maven-3.2.2export?PATH=$PATH:$M2_HOME/bin執(zhí)行如下命令:$?source?/etc/profile輸入mvn?--help命令,看看是否生效,部分結(jié)果如下:mvn?--helpusage:?mvn?[options]?[]?[]Options:?-am,--also-make????????????????????????If?project?list?is?specified,?also????????????????????????????????????????build?projects?required?by?the????????????????????????????????????????list?-amd,--also-make-dependents????????????If?project?list?is?specified,?also????????????????????????????????????????build?projects?that?depend?on????????????????????????????????????????projects?on?the?list?-B,--batch-mode????????????????????????Run?in?non-interactive?(batch)????????????????????????????????????????mode?-C,--strict-checksums??????????????????Fail?the?build?if?checksums?don't????????????????????????????????????????match3、安裝tomcat1)下載$?cd?/usr/local$?sudo?wget?http://mirrors.cnnic.cn/apache/tomcat/tomcat-7/v7.0.55/bin/apache-tomcat-7.0.55.tar.gz2)解壓縮$?cd?/usr/local$?sudo?tar?-xf?apache-tomcat-7.0.55.tar.gz3)配置環(huán)境變量$?sudo?vim?/etc/profile在末尾添加如下內(nèi)容:??export?export?TOMCAT_HOME=/export/software/apache-tomcat-7.0.42export?PATH=$PATH:$TOMCAT_HOME/bin執(zhí)行如下命令:$?cd?/usr/local/apache-tomcat-7.0.55$?bin/startup.shUsing?CATALINA_BASE:???/usr/local/apache-tomcat-7.0.55Using?CATALINA_HOME:???/usr/local/apache-tomcat-7.0.55Using?CATALINA_TMPDIR:?/usr/local/apache-tomcat-7.0.55/tempUsing?JRE_HOME:????????/usr/localk1.7.0_67/jreUsing?CLAsspATH:???????/usr/local/apache-tomcat-7.0.55/bin/bootstrap.jar:/export/software/apache-tomcat-7.0.55/bin/tomcat-juli.jarTomcat?started.此時(shí),在瀏覽器打開http://localhost:8080,可以看到如下頁面,表示啟動(dòng)成功。??可以執(zhí)行如下命令關(guān)閉tomcat:$?cd?/usr/local/apache-tomcat-7.0.55$?binutdown.shUsing?CATALINA_BASE:???/usr/local/apache-tomcat-7.0.55Using?CATALINA_HOME:???/usr/local/apache-tomcat-7.0.55Using?CATALINA_TMPDIR:?/usr/local/apache-tomcat-7.0.55/tempUsing?JRE_HOME:????????/usr/localk1.7.0_67/jreUsing?CLAsspATH:???????/usr/local/apache-tomcat-7.0.55/bin/bootstrap.jar:/export/software/a????以上就是系統(tǒng)大全給大家介紹的如何使的方法都有一定的了解了吧,好了,如果大家還想了解更多的資訊,那就趕緊點(diǎn)擊系統(tǒng)大全官網(wǎng)吧。??本文來自系統(tǒng)大全http:///如需轉(zhuǎn)載請(qǐng)注明!推薦:win7純凈版
Linux下JavaMavenTomcat的安裝
1、安裝Java(此處假定安裝目錄位/usr/local)。1)下載jdk(jdk-7),下載地址如下:32位:/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.tar.gz。64位:/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz。下載命令(以64位為例)。$ ;cd ;/usr/local。$ ;sudo ;wget ;/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz。2)解壓到安裝目錄,使用如下命令。$ ;cd ;/usr/local。
為你推薦