AD

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 prfile file

If your computer only when used as a development of this method is recommended because all users are entitled to use the shell environment variables, it might give the system a security problem.

(1) with a text editor to open / etc / profile

(2) by adding at the end of the profile file:

export JAVA_HOME = / usr/share/jdk1.5.0_05

export PATH = $ JAVA_HOME / bin: $ JAVA_HOME / lib: $ PATH

(3) to re-login

To solve common errors:

Question 1, "Neither th JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program "

Solution: Note JAVA_HOME is not configured correctly, JAVA_HOME must be added before export, with echo $ JAVA_HOME, to see if correct.

Issue 2, The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program

Solution: because this user does not have execute permissions caused
The $ CATALINA_HOME / bin directory of all. Sh file to add an executable permissions.
chmod 755 / usr / share / tomcat / bin / *. sh
标签: home environment, export path, lib, bin directory, environment variable, linux, usr, security problem, solution note, executable permissions, shell environment variables, program solution
分类: OS
时间: 2010-07-03

相关文章

  1. Detailed tomcat installation under linux

    First, the pre-installation preparations: 1, Linux version: I am the Enterprise Edition. (As for Red Hat Array ...
  2. 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 ...
  3. 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 ...
  4. 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 ...
  5. 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 ...
  6. Linux (ubuntu) under the JDK, Tomcat installation steps

    Recent projects require the server to Linux, so leisure time, virtual machine installed ubuntu, JDK environmen ...
  7. Installation under Linux configuration Jdk1.6 + Tomcat6 + Apache2.2.x + jk_mod1.2 Detailed

    Installation under Linux configuration Jdk1.6 + Tomcat6 + Apache2.2.x + jk_mod1.2 details Java code This part ...
  8. 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 ...
  9. 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. ...
  10. Tomcat 5 on Linux Step-By-Step

    Tomcat 5 on Linux Step-By-Step http://linux-sxs.org/internet_serving/c516.html
  11. Oracle 10g installation in linux the whole process diagram

    1, Oracle 10g installation in linux redhat as4 whole process diagram http://blog.csdn.net/tomliks/archive/2010 ...
  12. jdk installation under linux

    To Red Hat Enterprise Linux 5 as an example to explain. Related series: jdk installation under linux ant insta ...
  13. svn installation under linux

    To Red Hat Enterprise Linux 5 as an example to explain. Related series: jdk installation under linux ant insta ...
  14. nginx installation under linux

    To Red Hat Enterprise Linux 5 as an example to explain. Related series: jdk installation under linux ant insta ...
  15. jdk + tomcat installation and configuration

    Install and configure JDK: in fact the Path and Classpath and JAVA_HOME configuration JDK platform Java compil ...
  16. 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 ...
  17. Oracle 10g installation in linux redhat as4 whole process diagram

    http://blog.chinaunix.net/u/6589/index.html *** ORACLE-RAC **** http://ahcz.szq.blog.163.com/blog/static/13058 ...
  18. graphviz installation under linux

    graphviz is a graphics tool, it will be used in many places, such as UmlGraph, Doxygen and so on. Official web ...
  19. doxygen installation under linux

    doxygen for source code generation from a java tool for technical documentation, somewhat similar to javadoc, ...