The BASEDIR environment variable is not defined correctly

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.