Recently installed, the operating system of Hongqi 5.0 workstation version found that it comes with java1. JDK 5 and eclipse3. 0. 1
That is, there is no tomcat, so I want to install one.
Because of the network speed problem, a tomcat5.0.28 tool is installed on another host with Windows XP. The following is the tar package. For simple reasons, I used WinRAR in Windows to release the package, and then copied it directly to the red flag. Then, I configured the environment variable as follows:
########################
I made a link to jdk1.5.0 _ 04 In usr/Java /.
# Ln-S/usr/Java/jdk1.5.0 _ 04/usr/Java/JDK
My tomcat also made a link in the/opt/jakarta-tomcat-5.0.28
# Ln-T/opt/jakarta-tomcat-5.0.28/opt/tomcat
######################################## ####
### VI Java 1.5.0 _ 06
Java_home =/usr/Java/JDK
Export java_home
Path = $ java_home/bin: $ java_home/JRE/bin: $ path
Export path
Jre_home =/usr/Java/JDK/JRE
Export jre_home
Classpath =.: $ java_home/lib/tools. jar: $ java_home/lib/dt. jar: $ jre_home/lib
Export classpath
######################################## ##########
# V2 Tomcat 5.0.28
#/Opt/tomcat
Tomcat_home =/opt/tomcat
Export tomcat_home
Catalina_home =/opt/tomcat
Export catalina_home
Catalina_home =/opt/tomcat
Classpath = $ classpath: $ catalina_home/common/lib: $ catalina_home/comon/lib/servlet-api.jar
Export classpath
Save the configuration file and log out and restart.
In # cd/opt/tomcat/bin
#./Startup. Sh
The error message "no permission root" is displayed.
I am under root. How can I not have the permission? Then I can see that the attributes of startup. Sh do not have the execution permission,
After changing the permission, I log out and restart.
After restarting tomcat,
No welcome page in the browser Test
Check the log. No error is displayed, but the message "missing... web. xml" is displayed"
* ************************************ Solution *************************************
From the beginning, we can see that the system prompts that you do not have the permission. We changed the startup. Sh permission, but did not change the execution permission of other files. I think the problem is that I unwrapped the tomcat installation package in the window. Because it is a tar package, the permissions are lost in windows. Finally, I deleted Tomcat under the red flag and copied the package to decompress it again,
Tar xvzf/opt/tomcatfilename.tar
Relink the Tomcat link to the decompressed tomcat.
Start Tomcat and enter http: // localhost: 8080 in the browser.
The welcome page appears.