Home > Database > Mysql Tutorial > Linux下Resin+JSP+MySQL安装和配置_MySQL

Linux下Resin+JSP+MySQL安装和配置_MySQL

WBOY
Release: 2016-06-01 13:53:41
Original
852 people have browsed it

  准备软件:

  1. J2SDK(1.5.0): jdk-1_5_0-linux-i586-rpm.bin

  2. Apache(2.0.53): httpd-2.0.53.tar.gz

  3. Resin(3.0.13): resin-3.0.13.tar.gz

  4. MySQL(4.1.12): Server: MySQL-server-4.1.12-1.i386.rpm

  Client: MySQL-client-4.1.12-1.i386.rpm

  5. MySQL-JBDC Connector: mysql-connector-java-3.1.10.tar.gz

  将上述软件全部放到一个目录下,假设在/down中。

  安装过程:

  一.安装J2SDK

  1.解压文件,解压后一个RPM安装包,安装中根据提示回答yes即可将文件安装到/usr/java/jdk1.5.0目录中

  # chmod u+x ./jdk-1_5_0-linux-i586-rpm.bin
  # ./jdk-1_5_0-linux-i586-rpm.bin
  # rpm -ivh jdk-1_5_0-linux-i586.rpm

  安装程序会将J2SDK安装到以下目录中:

  # ls /usr/java

  jdk1.5.0

  2.配置环境变量

  (1)配置用户环境变量

  假设用户名为jun,编辑该用户的.bashrc文件:

  # vi /home/jun/.bashrc

  在其中加入:

  export JAVA_HOME=/usr/java/jdk1.5.0
  export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
  export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$HOMR/bin

  (2)配置所有用户的环境变量

  # vi /etc/profile

  加入:

  export JAVA_HOME=/usr/java/jdk1.5.0
  export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
  export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$HOMR/bin

  注意,这些应该加在export PATH USER...之前

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template