Configuration of All-Around hosts in Ubuntu

Source: Internet
Author: User
Configuration of All-Around hosts in Ubuntu-Linux Enterprise Application-Linux server application information. The following is a detailed description. I installed Ubuntu on my machine for several days. I have never used it seriously. Today, I was so impressed by my painstaking efforts. Just do what you say. I used Ubuntu7.04 to download JDK 6, apache2, php, and mysql.

After installation, configure the Java environment and run java-version... OK ~~ (There are too many materials on the Internet. I won't even mention it)

Install tomacat and tomcat 6, decompress it to/opt/tomcat, and then install JK. Compile the source code according to what you said on the Internet. The bin directory cannot be found. Alas ~~ Find and find. Search. The result showed that there was a compiled jk on the new gains, and it immediately went down.

Sudo apt-get install libapache2-mod-jk

Open/etc/apache2/mod-enabled/and check whether jk. load exists ..

Edit: workers. properties
# Sudo gedit/etc/libapache2-mod-jk/workers. properties
Workers. tomcat_home =/opt/tomcat
Workers. java_home =/usr/lib/jvm/java-6-sun-1.6.0.00

Next, configure apache2.conf.

Open/usr/share/doc/libapache2-mod-jk/httpd_example_apache2.conf

Copy the content to the end of apache2.conf.

# Sudo/etc/init. d/apache2 restart
# Sudo/usr/share/tomcat6/bin/./shutdown. sh
# Sudo/usr/share/tomcat6/bin/./startup. sh

# Sudo gedit/etc/rc. local
Export JDK_HOME =/usr/lib/jvm/java-6-sun-1.6.0.00
Export JAVA_HOME =/usr/lib/jvm/java-6-sun-1.6.0.00
/Usr/share/tomcat6/bin/startup. sh

Restart apache and tomcat and upload the jsp file to usr/share/tomcat6/webapps/ROOT.

OK .. test it. It is found that jsp will be automatically parsed using tomcat, and test. php can also be used in/var/www. Finished.
Related Article

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.