Configure the jsp environment in linux
$180★Diamond reputation★Xinnet domain name registration Chinese. cn Chinese. China
★Diamond reputation★Xinnet domain name registration Chinese. cn Chinese. China
Today, I have successfully configured the JSP development environment in Redhat Linux (Red Hat Enterprise Linux 4). I have some experience to share with you.
Operating system: Redhat Linux (Red Hat Enterprise Linux 4)
JDK: j2sdk-1_4_2_01-linux-i586.bin
TOMCAT: jakarta-tomcat-5.0.19.tar.gz
Installation steps:
JDK:
1) copy the installer to the/usr/local directory.
2) run the following command:
/J2sdk-1_4_2_01-linux-i586.bin
Decompress the package to get the directory j2sdk-1.4.2_01, change the directory name to j2sdk-1.4.2, otherwise the subsequent operation will be invalid.
3) execute the following commands in sequence:
Ln-s j2sdk-1.4.2 jdk
Ln-s jdk/jre
4) set environment variables
Vi/etc/profile
Add the following content:
JAVA_HOME =/usr/local/jdk
Export JAVA_HOME
CLASSPATH =/usr/local/jdk/lib:/usr/local/jre/lib
Export CLASSPATH
PATH = $ PATH:/usr/local/jdk/bin:/usr/local/jre/bin
5) test whether JDK is successfully installed.
Cd/etc
Javac
If javac instructions are displayed, the installation is successful.
TOMCAT:
1) copy the installer to the/usr/local directory.
2) run the following command:
Tar-zxvf jakarta-tomcat-5.0.19.tar.gz
Decompress the package to get the directory jakarta-tomcat-5.0.19
3) set environment variables
Vi/etc/profile
Add the following content:
TOMCAT_HOME = foo/tomcat
Export TOMCAT_HOME
4) enter/usr/local/jakarta-tomcat-5.0.19/bin and execute:
./Startup. sh start
Start tomcat server
5) test whether the installation is successful