3
我试图在我的linux机器上安装Tomcat
和Ant
,但在安装之前,我只需要检查它们是否已安装。如何检测是否在linux机器上安装了tomcat和ant
关于tomcat的:
我GOOGLE了很多,在以下目录中搜索我的机器上为Tomcat
/usr/local/, /opt/, /usr/share/
但我din't找到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
关于蚂蚁:
我用Google搜索,并得到了下面的命令,由于这是我得到了下面的结果来执行 它
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)
对于Ant:它可以找到蚂蚁的版本,但是哪里/什么是ant将被安装在linux上的路径? – 2013-02-21 07:00:35
对于tomcat:这里是什么$ PATH变量?如何找到它?我找不到任何系统上的任何tomcat文件夹?那么tomcat的实际路径将会被删除? – 2013-02-21 07:02:30
,因为首先我会检查tomcat是否在该路径中,之后我将运行version.sh ......因为在不知道tomcat将被定位/安装在哪里之前,我们如何才能进入该文件夹并执行版本。 sh? – 2013-02-21 07:04:02