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!