我正试图在我的Linux机器上安装Tomcat和Ant,但在安装它们之前,我只需要检查它们是否已经安装。
关于Tomcat:
我进行了大量的谷歌搜索,并在以下目录中搜索了Tomcat:
/usr/local/, /opt/, /usr/share/
但是我在上述任何路径中都没有找到tomcat文件夹,这是否表示tomcat
未安装?所以实际上
1. what is the path to `look/find` exactly to know/check whether tomcat is installed or not in
all linux machines
2. what will be the path the tomcat will be installed exactly after installation
3. How to find the version of tomcat on any linux machine (if tomcat already installed)
4. Whether there are any commands to look for both whether `tomcat` installed and `ant`
installed
关于Ant:
我通过谷歌搜索得到以下命令,执行后得到以下结果:
sh-4.2$ ant -v
结果
sh-4.2$ ant -v
Apache Ant(TM) version 1.8.2 compiled on November 21 2011
Trying the default build file: build.xml
Buildfile: build.xml does not exist!
Build failed
所以实际上
1. Does the above result mean that `Ant` is installed ? or not ?
2. what is the path to `look/find` exactly to know/check whether ant is installed or not in
all linux machines
3. what will be the path the `ant` will be installed exactly after installation
4. How to find the version of `Ant` on any linux machine (if Ant already installed)