To download Apache, Tomcat, and jdk from Fedora

Source: Internet
Author: User
Recently, due to work needs, I started to study the Fedora operating system. In fact, I had some contact before, but I did not go deep into it. Now I found that some things are still very difficult and not as smooth as I thought, the following describes some of my experiences in installing apache and tomcat: first, the software to download has the following types: 110000jdk-rj5_0_06-linux-i586-rpm.bin2?apache-tomcat-5.5.16.tar.gz 3, httpd-2.2.0

Recently, due to work needs, I started to study the Fedora operating system. In fact, I had some contact before, but I did not go deep into it. Now I found that some things are still very difficult and not as smooth as I thought, the following describes my experiences in installing apache and tomcat:

First, the software to be downloaded includes the following types:

1. jdk-1_5_0_06-linux-i586-rpm.bin

2、apache-tomcat-5.5.16.tar.gz

32.16httpd-2.2.0.tar

The above installation software can be searched online by the reader.

Next, start to install the software:

Step 1: check if your machine has an rpm package with a jdk-1_5_0_06 installed

Run the command rpm-q jdk

If the result is: jdk-1.5.0_06-fcs, it indicates that you have installed

Otherwise, you need to install jdk. Follow these steps to install jdk:

1. Change the execution permission of the file. Otherwise, the system prompts that the permission is insufficient.

Chmod + x jdk-1_5_0_06-linux-i586-rpm.bin

2. Start executing the file.

/Jdk-1_5_0_06-linux-i586-rpm.bin

It will prompt the installation step by step, as long as you follow its steps.

3. Start to configure its environment variables.

# Vi/etc/profile
# Set java environment
JAVA_HOME =/usr/java/jdk-1_5_0_02
CLASSPATH =.: $ JAVA_HOME/lib/tools. jar
PATH = $ JAVA_HOME/bin: $ PATH
Export JAVA_HOME CLASSPATH PATH

4. Use the echo command on the terminal to check the environment variable settings

# E cho $ JAVA_HOME
# E cho $ CLASSPATH
# E cho $ PATH

5. Check whether JDK is successfully installed.

# Java-version

If you see the JVM version and related information, the installation is successful!

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.