AD

CentOS + JDK1.6 + Tomcat Installation

Need to install before installing Tomcat j2sdk (Java 2 Software Development Kit), which is JDK

1, install the JDK as follows:

1) Download the j2sdk, such as jdk-6u14-linux-i586-rpm.bin

2) In the terminal, go to the jdk-6u14-linux-i586-rpm.bin directory, enter the command chmod +755 jdk-6u14-linux-i586-rpm.bin, add the execute permissions.

3) execute the command ./jdk-6u14-linux-i586-rpm.bin, generate jdk-6u14-linux-i586.rpm file.

4) execute the command chmod +755 jdk-6u14-linux-i586.rpm, to jdk-6u14-linux-i586.rpm add execution permissions.

5) execute the command rpm-ivh jdk-6u14-linux-i586.rpm, install jdk.

6) License Agreement installation screen appears, press Enter to accept the jdk installed in / usr/java/jdk1.6.0_14. Adjusted according to different versions of the

7) Set the environment variable in / etc / profile add the following content (you can use vi to edit profile):

JAVA_HOME = / usr/java/jdk1.6.0_14 different depending on the version of the adjusted CLASSPATH = $ JAVA_HOME / lib: $ JAVA_HOME / jre / lib
PATH = $ PATH: $ JAVA_HOME / bin: $ JAVA_HOME / jre / bin
export PATH CLASSPATH JAVA_HOME

8) In the terminal execute the command java-version, jdk version is jdk1.6.0_14 jdk said has been successfully installed.

2, install Tomcat
1) Download apache-tomcat-6.0.20.tar.gz / / version number varies

2) tar-zxvf apache-tomcat-6.0.20.tar.gz / / decompression

3) cp-R apache-tomcat-6.0.20 / usr / local / tomcat / / copy apache-tomcat-6.0.20 to / usr / local / tomcat named under both

4) / usr / local / tomcat / bin / startup.sh / / start tomcat

Shown below:
Using CATALINA_BASE: / usr / local / tomcat
Using CATALINA_HOME: / usr / local / tomcat
Using CATALINA_TEMDIR: / usr / local / tomcat / temp
Using JAVA_HOME: / usr/java/jdk1.6.0_14 vary depending on the version of the

This tomcat has been installed and now use the browser to access **localhost:8080 , tomcat default page appears, already installed successfully.
tomcat installation directory in the / usr / local / tomcat directory to the following can be configured with the same directory structure under Windows

3 existing java 1.4 problem

# Rpm-qa | grep gcj

Display contains the following two lines

# Java-1.4.2-gcj-compat-1.4.2.0-27jpp
# Java-1.4.2-gcj-compat-devel-l.4.2.0-27jpp
Uninstall
# Rpm-e java-1.4.2-gcj-compat-devel-l.4.2.0-27jpp
# Rpm-e java-1.4.2-gcj-compat-l.4.2.0-27jpp

Note: If the package name of the lot, must bear uninstall java-XXXX package, there would be problems

**youtops.iteye**/blog/440801
标签: localhost, export path, path path, tar gz, bin directory, java jdk1, apache tomcat, environment variable, rpm, decompression, tar zxvf, using java, license agreement, classpath java, jre, software development kit, java version, profile java, java 2 software development kit, command chmod
分类: Internet
时间: 2011-03-08

相关文章

  1. Linux tomcat installation

    1, jdk installation of jdk is installed: jdk-6u17-linux-x64-rpm.bin (linux under the 64-bit) 1. The file uploa ...
  2. Linux installation and vncServer FTPServer apache tomcat installation

    1, download the Linux operating system pre-prepared apache and tomcat JDK64_Linux bit and JDK32_Linux Download ...
  3. Linux system installation and vncServer FTPServer apache tomcat installation

    1, download the Linux operating system pre-prepared apache and tomcat JDK64_Linux bit and JDK32_Linux Download ...
  4. centos zendce red5 ffmpeg installation configuration

    This is mainly spoke of the centos server, how to quickly set up AMP environment and the streaming media serve ...
  5. Tomcat installation under Linux

    Tomcat installation under Linux 1, under the Tomcat6.0 on usr 2, configure the path, I use is to modify the pr ...
  6. Under the configuration in linux jdk1.5 + tomcat + idea + svn

    This article Internet search for non-original system, if any infringement, I immediately removed, please infor ...
  7. jdk + tomcat installation and configuration

    Install and configure JDK: in fact the Path and Classpath and JAVA_HOME configuration JDK platform Java compil ...
  8. Ubuntu under jdk, mysql, tomcat installation and configuration

    A, jdk installation 1. Download and install sun jdk First, http://java.sun.com download jdk-6u20-linux-i586.bi ...
  9. Ubuntu under jdk, mysql, tomcat installation configuration

    A, jdk installation 1 Download and install sun jdk First, at http://java.sun.com download jdk-6u20-linux-i586. ...
  10. Nginx + Tomcat installation and configuration of integrated (switch)

    1. Preparation software apache-tomcat-6.0.26.tar.gz http://tomcat.apache.org/download-60.cgi jdk-6u20-linux-i5 ...
  11. centos auto start tomcat, oracle

    1. centos auto start tomcat In the / etc / rc.d / rc.local to add to the first line export JDK_HOME = / usr/ja ...
  12. CentOS 6.0 server installation. Configuration. Optimization (Beginners)

    Let me know about the recent head, Linux CentOS under the server installation, configuration, natural means in ...
  13. Free version of the Tomcat installation for registration as a windows service --- Reading (change)

    Free version of the Tomcat installation for registration as a windows service --- s (Transfer from http://www. ...
  14. Linux, tomcat installation Xiangjie (change)

    This turn off the firewall inside the mind, or may be unable to access other machines First, the preparation b ...
  15. (R) CentOS scheduled tasks, Crontab installation and use

    http://www.hitsword.org/read.php?91 CentOS scheduled tasks, Crontab installation and use hitsword , 15:20, Lin ...
  16. Linux (ubuntu) under the JDK, Tomcat installation steps

    Recent projects require the server to Linux, so leisure time, virtual machine installed ubuntu, JDK environmen ...
  17. Detailed tomcat installation under linux

    First, the pre-installation preparations: 1, Linux version: I am the Enterprise Edition. (As for Red Hat Array ...
  18. CentOS下停止Tomcat运行脚本代码

    这篇文章主要介绍了CentOS下停止Tomcat运行脚本代码,需要的朋友可以参考下 代码验证通过,保留,以备后用 #!/bin/sh # # Firstly find the process of the tomcat. ...
  19. Linux, Java, Tomcat installation and configuration of the environment (CentOS + JDK1.6)

    One. JDK 1 download JDK .............. 2 Installation 1) Create a folder # Mkdir / usr / java 2) Download a go ...