& Nbsp; system environment: Linux5.0AS64-bit steps are as follows: 1、download apache-tomcat-5.5.23.tar and jdk-1_5_0_12-linux-i586.bin coexist in the/usr/local folder; 2. install jdk [root @ localhostlocal] # chmod775jdk-1_5_0_12-linux-
System environment: Linux 5.0 AS 64-bit
The procedure is as follows:
1、download apache-tomcat-5.5.23.tar and jdk-1_5_0_12-linux-i586.bin in the/usr/local folder;
2. install jdk
[Root @ localhost local] # chmod 775 jdk-1_5_0_12-linux-i586.bin is not required, if the run directly prompts the permission is not enough to change the permission;
[Root @ localhost local] #./jdk-1_5_0_12-linux-i586.bin to start the installation, the default installation can be;
3. install Tomcat
[Root @ localhost local] # tar xzvf apache-tomcat-5.5.23.tar can be installed by default
[Root @ localhost local] # mv apache-tomcat-5.5.23 atat5.5 modify the default installed folder name to facilitate the subsequent configuration of environment variables
4. set jdk and Tomcat environment variables
[Root @ localhost local] # vi/etc/profile requires you to know how to use the vi command. See the appendix.
Enter the following content at the end of the file:
Export JAVA_HOME =/usr/local/jdk1.5.0 _ 12 export CLASS_PATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/jre/lib/rt. jarexport CATALINA_BASE =/usr/local/tomcat5.5export CATALINA_HOME =/usr/local/tomcat5.5PATH = $ JAVA_HOME/bin: $ PATH: $ CATALINA_HOME/bin [root @ localhost local] # source/etc/profile re-edit the profile file
|
5. test whether jdk is successfully installed.
[Root @ localhost local] # if the command runs normally, the installation is successful.
[Root @ localhost local] # javac installation is successful if the command runs normally
[Root @ localhost local] # check whether the jdk version is the version we have installed. for details, see the appendix.
6. Tomcat startup and configuration
[Root @ localhost local] #/usr/local/tomcat5.5/bin/startup. sh: start tomcat. If no error occurs, the startup is successful. you can also access port 8080 of the local machine to check whether the port is normal (enter 127.0.0.1: 8080)
7. other Tomcat settings
A. create a new admin user for Tomcat, so you need to edit jakarta/conf/tomcat-users.xml and add a similar line in it.
In this way, you can click the "Tomcat Administration" link on the left of the Tomcat home page to go to a logon page. enter the user you just created to further configure the server.
B. view the Tomcat log file:
[Root @ localhost local] # tail-f/usr/local/tomcat5.5/logs/catalina. out
Appendix:
A. java version issues. If you select the java Server when installing the system, jdk1.4.2 is installed by default. We recommend that you uninstall JDK by default;
B. vi commands mainly include: Press the letter I to enter the editing status; to exit the editing status, press the Esc key, then press the: sign, and then enter the wq command after the: sign to save and exit.