我首先尝试安装tomcat9然后切换到tomcat7。当从/opt/apache-tomcat-7.0.70/bin执行./version.sh命令时,它会在/ home / admin中搜索tomcat9,如下所示;
[root@localhost bin]# pwd
/opt/apache-tomcat-7.0.70/bin
[root@localhost bin]# ./version.sh
Cannot find /home/admin/apache-tomcat-9.0.0.M6-src/bin/setclasspath.sh
This file is needed to run this program
[root@localhost bin]#
为什么会这样?我该怎么做才能解决它?
答案 0 :(得分:0)
当我关闭终端并重新打开时解决了!