Today, deploying a Tomcat in the virtual machine's Linux system, running SH startup.sh, prompts for the following information:
The BASEDIR environment variable is not defined correctly
This environment variable are needed to run.
From the literal meaning, seems to be about the environment variable setting problem, the first is that the JDK environment variable is not set, so go to check, and run java-version also show normal, so eliminate this possibility, then go to check Tomcat environment variable, check also no exception. This tomcat package was used before, is normal, according to the truth in other circumstances should be no problem, and then into the Tomcat Program Bin folder, run LL-LTRH, found that the directory file does not have executable permissions, so run Chmod-r +x. /bin to authorize, start Tomcat again.
The BASEDIR environment variable is not defined correctly