We recommend a Linux tomcat System that is very useful to everyone, for example, to let everyone know about the Linux tomcat System, and then give a comprehensive introduction to the Linux tomcat System, we hope to use the Linux tomcat installation ** in the Linux system to install Linux tomcat.
1. Use a virtual optical drive to import an ISO image with a JDK package.
2. mount the optical drive mount/dev/cdrom/media (mount to/media, you can create a mount directory by yourself)
3. Enter cd/media to view ls-al... accp (with accp) cd accpls-a (with three packages)
4. cp */home(copy all the east and west to )ora-core-1-i386.tar.gz/jakarta-Linux tomcat-5.5.9tar.gz/jdk-1_5_0_05-linux-i586-rpm.bin) copy the disc and do not forget to unmount it
5. java-version
6. cd/home go to home and run bin. /jdk-1_5_0_05-linux-i586-rpm.bin (. bin is executed. /file name execution) Agree to install y began to decompress the installation after the discovery of two more jdk (jdk-1_5_0_05-linux-i586.rpm/jdk-1_5_0_05-linux-i586-rp) in addition to jdk installed is in/usr/java/below
7. Link ln/usr/java/jdk1.5.0 _ 05/usr/jdk (for reference convenience)
8. vi/etc/profile (global, will take effect for all users) written at the end of the file
Export JAVA_HOME =/usr/jdk
Export PATH = $ PATH: $ JAVA_HOME/bin
Export CLASSPATH = $ JAVA_HOME/lib
Shift + zz save and exit
For Linux tomcat, use cat/etc/profile to confirm whether the change has been successful. java-verion (JDK found in the system ), in/usr/bin/java, the original jdk version was renamed: mv/usr/bin/java. before bak is renamed, java-version is 1.4.
If you run java-version on Linux tomcat, the file and directory will not be displayed. Check if jdk is installed by rpm-q jdk r-qa. Check all jdk versions.) logout is deregistered, you can also log on to/etc/profile.) java-verion found that the JDK version is already installed.
Configure Linux tomcat
1. Go to cd/home
2. tar zxvf jakarta-Linux tomcat-5.5.9.tar.gz-C/usr/local unzip Linux tomcat to/usr/local
3. Run cd/usr/local ls-al to view Linux tomcat.
4. cd Linux tomcat-jakarta-Linux tomcat-5.5.9 (you can use the tab to complete)
5. ls to see the bin cd bin and enter the bin. Then ls to see the startup. sh and shutdown. sh run startup directly here. sh can be stored in/usr/local/Linux tomcat/bin.) shutdown. sh Server Browser access http: // localhsot: 8080 client http: // 192.168.1.110: 8080 this IP address is the Server IP Address
6. if you cannot log on to vi startup. sh is modified in... add export CATALINA_HOME =/usr/local/Linux tomcatvi/etc/rc. d/localtouch downlink/usr/local/Linux tomcat/bin/startup. sh
7. To modify the port number for Linux tomcat cd/usr/local/Linux tomcat/bin/conf vi Linux tomcat-users.xml change connet port to 80
8. The release path is/usr/local/jakarta-Linux tomcat-5.5.9/webapps/ROOT/. If jsp and web-config are available)
- Analyze Automatic startup of SUSE Linux Tomcat
- Linux php system origin principle function time
- Configure the Java compiling and running environment for Linux JDK
- Linux disk partitioning tool and command usage
- Linux Kernel 2.6.33 official version released