Configure Apache and tomcat startup on FreeBSD

Source: Internet
Author: User

I have installed the FreeBSD operating system, apache1.3 and tomcat 5 on a very old machine (mmx200 64 m). Apache and tomcat cannot be started automatically when the machine starts up. My current solution is as follows:

For Apache and tomcat, write the startup command in the RC. Local file.

/Usr/local/bin/apache2/apachectl start

SH/usr/local/tomcat5/bin/startup. Sh

However, after the restart, it is found that Tomcat cannot be properly loaded and run. The specific error is that java_home is not set, and the Startup File is found at startup. run Catalina. sh script, so I'm in Catalina. sh, and this script sets the java_home environment. Therefore, the above error is solved before you write java_home =/usr/local/jdk1.5.0 in the script.

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.