tomcat 的安裝及eclipse tomcat 外掛程式的安裝 設定

來源:互聯網
上載者:User

1:下載eclipse javaEE 開發平台 地址:http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/SR1/eclipse-jee-luna-SR1-win32.zip

2:下載tomcat web 容器 地址:http://tomcat.apache.org/download-80.cgi

3:安裝tomcat

3.1: 下載安裝java 運行或開發環境 jdk 或jre 地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html

3.2:設定java 的環境變數。JRE_HOME or JAVA_HOME (必須) 對於java開發還需設定path 環境變數

3.3:設定tomcat環境變數,CATALINA_HOME(必須設定)CATALINA_BASE(可選)

注意環境變數的設定可以通過apache-tomcat-8.0.12\bin的setclasspath.bat來設定。setclasspath.bat僅可以設定JAVA_HOMEJRE_HOME 不能夠設定CATALINA_HOME,所以環境變數的設定還是選擇自己建立吧。CATALINA_HOME為解壓後的檔案目錄 ,從%CATALINA_HOME%\bin\shutdown.bat 可以看出CATALINA_HOME 的目錄,JAVA_HOME 與CATALINA_HOME類似。

3.4:  點擊%CATALINA_HOME%\bin\startup.bat  在瀏覽器中輸入:http://localhost:8080/ 有反應,則tomcat安裝正確。

 

4: 為eclipse javaee 安裝tomcat 外掛程式。以便通過eclipse的tomcat 來啟動及停止tomcat ,而不需每次去tomcat 目錄去操作。 外掛程式下載地址:http://www.eclipsetotale.com/tomcatPlugin.html  (把解壓出來的com.sysdeo.eclipse.tomcat_3.3.1.jar 放入eclipse  的plugins目錄下 ),此外掛程式最高支援tomcat7 不支援tomcat 8.

 

5: 在eclipse中進行配置tomcat ,在window->preferences->tomcat->tomcat home (為CATALINA_HOME的目錄) 及 context declaration mode 選擇server.xml .

 

6: 在eclipse 中點擊 如果能夠啟動tomcat ,就說明外掛程式已經配置好了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.