linux - 查找localhost:8080文件夹和文件

标签 linux apache tomcat networking localhost

我编译了一个程序,并且README文件告诉我打开localhost:8080来打开程序。我已经搜索过,但是找不到在访问localhost:8080时打开的文件夹和文件,或者在其中存储了html文件和其他js或css文件的文件夹和文件。我在Debian Wheezy上安装了apache2。如何查找localhost:8080定向到的文件和文件夹? (例如,例如localhost:80指向/ var / www)

最佳答案

打开终端并找到Tomcats配置文件:

find / -name server.xml 2>/dev/null


那将打印类似:“ /opt/apache-tomcat-7.0.39/conf/server.xml”。然后打印Tomcats webapps目录位置:

 more [PATH]/server.xml | grep appBase


这将打印如下内容:...主机名=“ localhost” appBase =“ webapps” ....
AppBase是Tomcat存储其Web内容的目录的路径。

关于linux - 查找localhost:8080文件夹和文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28192312/

相关文章:

linux - 站点使用 https 重定向,但在 Apache2 上使用 http

linux - 在后台以 sudo 运行程序

apache - 为什么默认情况下Varnish sess_timeout如此之低?

c# - C# 中的 PHP Web 服务 : Invoke() function returns null

java - tomcat上的liferay不加载类

ruby - 如何从 ruby​​ 脚本更改终端中的目录?

linux - 在 Mac 上将 .json 文件拆分为多个文件

在eclipse中配置axis2时出现java空指针异常

session - Vaadin Framework 7 中 session 超时的不规则性

java - 在 tomcat 服务器内为 grpc 托管多个 netty 服务器,应用程序重新部署问题