2014-02-25 83 views
0

其實,我是Linux及其配置的新手。我剛剛在我的debian linux上安裝了Tomcat Apache 7.0.52。我輸入IP 192.168.56.10,服務器IP,但它顯示it works!頁面,這意味着舊版本的Apache服務器:Apache/2.2.16(Debian)正在運行,而不是tomcat,正確的頁面應該包含tomcat的標識。有沒有我錯過的配置?(Tomcat Apache配置)無法看到Tomcat Apache着陸頁

回答

0

檢查server.xml。如果你沒有改變它,Tomcat的端口通常是8080。所以,請嘗試使用該端口的IP:192.168.56.10:8080

這定義端口,其中服務器監聽:

<!-- A "Connector" represents an endpoint by which requests are received 
    and responses are returned. Documentation at : 
    Java HTTP Connector: /docs/config/http.html (blocking & non-blocking) 
    Java AJP Connector: /docs/config/ajp.html 
    APR (HTTP/AJP) Connector: /docs/apr.html 
    Define a non-SSL HTTP/1.1 Connector on port 8080 
--> 
<Connector port="8080" protocol="HTTP/1.1" 
      connectionTimeout="20000" 
      redirectPort="8443" /> 
+0

我檢查,但它是相同的,沒有區別 –

+0

只是與NetBeans和驗證本地安裝在Windows系統上:默認端口是8084. – Spindizzy

+0

這是默認值! –