实际上,我对Linux和它的配置是新手。我刚刚在我的debian linux上安装了Tomcat Apache 7.0.52。我输入了IP192.168.56.10,服务器的ip,但它显示的是it works!页面,这意味着旧版本的apache服务器:Apache/2.2.16 (Debian)正在运行,而不是tomcat,正确的页面应该包含tomcat的标志。有没有我遗漏的配置?
发布于 2014-02-26 04:10:47
检查server.xml。Tomcat的端口通常是8080,如果您没有更改它的话。请尝试使用端口为192.168.56.10:8080的IP
这定义了服务器监听的端口:
<!-- 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" />https://stackoverflow.com/questions/22024931
复制相似问题