For details about how to set up tomcat in linux-Linux Enterprise Application-Linux server application, see below. Author: kiss_o
Tomcat setup in Linux:
Preparations:
1: Operating System red hat Liux 9.0 kernel: 2.4-20-8 installed.
2: Download the java installer. For linux, you can go to http://java.sun.com to download.
3: Download the tomcat installation program. For linux, you can go to http://jakarta.apache.org to download.
You can also download it from other sites, but it must be for linux.
The java name I downloaded is: j2sdk-1_4_2_12-linux-i586-rpm.bin
Tomcat name: jakarta-tomcat-4.1.31.tar.gz
Installation Process:
1: copy the j2sdk-1_4_2_12-linux-i586-rpm.bin to the/tmp directory. You can use the samba service to copy in. You can also use the U disk to copy in and so on.
2: Copy jakarta-tomcat-4.1.31.tar.gz to/usr/local.
3: Execute # sh./j2sdk-1_4_2_12-linux-i586-rpm.bin in the/tmp directory to show the license agreement
Enter yes to generate an rpm package. How can I use rpm? The ivh j2sdk-1_4_2_12-linux-i586-rpm installs the package. After installation, a java directory will be generated in/usr. At this time, your java is not available.
4: Use tar zvxf to decompress jakarta-tomcat-4.1.31.tar.gz at/usr/local.
5: Set the environment variable to/root to use ls? Command a to view the hidden file. You will see a file named. bash_profile.
Use the vi editor to edit it as follows: