【原创】

【原创】

linux jsp 的resin 接解决方案
1 安装JDK :j2sdk-1_4_2_04-linux-i586-rpm.bin
#sh ./j2sdk-1_4_2_04-linux-i586-rpm.bin
#rpm -ivh j2sdk-1_4_2_04-linux-i586-rpm
在/usr/java/下生成j2sdk-1_4_2_04目录
2 安装mysql mysql-3.23.58.tar.gz
  #tar -zxvf mysql-3.23.58.tar.gz
  #cd  mysql-3.23.58
  #./configure --prefix=/usr/local/mysql --sysconfigdir=/etc --locadstatedir=/var/lib/mysql
  #make
  #make install
  #cd /usr/locad/mysql/bin/mysql_install_db
  #useradd -M -o -r -d /var/lib/mysql -s /bin/bash -c "MySQL Server" -u 27 mysql
  可以启动mysql了
  #/usr/local/mysql/bin/safe_mysqld &
  #mysql -u root mysql
  如果没进去的 话,改一下权限
  # chown -R mysql:mysql /var/lib/mysql
3 安装apache apache_1.3.31-s390-whatever-linux22.tar.gz
  #tar -zxvf apache_1.3.31-s390-whatever-linux22.tar.gz
  #cd apache_1.3.31
  #./configure --prefix=/usr/local/apache --enable-moudule=so
  #make
  #make install
  可以启动apache了
  #/usr/local/apache/bin/apachectl start
4  安装resin-3.0.8.tar.gz (在编译apache 生成的moud_caucho.so在/usr/local/apache/libexec
  下)
  最好把resin-3.0.8.tar.gz拷到/usr/local
  #cp -R resin-3.0.8.tar.gz /usr/local
  #cd /usr/local
  # tar -zxvf resin-3.0.8.tar.gz
   将生成resin-3.0.8目录
  #./configure --with-apxs=/usr/local/apache/bin/apxs
  #make
5 设 JDK , resin-3.0.8的环境变量
  #vi ~/.bash_profile
  以下是.bash_profile里的内容#号为注释
  #PATH=$PATHHOME/bin
#BASH_ENV=$HOME/.bashrc
#USERNAME="root"

#export USERNAME BASH_ENV PATH
JAVA_HOME=/usr/java/j2sdk1.4.2_04
CLASSPATH=$JAVA_HOME/libJAVA_HOME/jre/libCLASSPATH/doc/WEB-INF/lib
RESIN_HOME=/usr/local/resin-3.0.8
CATALINA_BASE=$RESIN_HOME
CATALINA_HOME=$RESIN_HOME
PATH=$JAVA_HOME/binJAVA_HOME/jre/bin:$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
export USERNAME BASH_ENV JAVA_HOME CLASSPATH CATALINA_BASE CATALINA_HOME PATH

6  测试JDK
  #java -version
7 启动 resin-3.0.8
  #/usr/local/resin-3.0.8/bin/httpd.sh      
resin 下架jsp网站时 mysql也导进了
但是不能注册和登录
是mysql 的驱动程序的问题
问问mysql 的驱动程序放在那里.
发部的网站是WEB-INF/lib下mm-mysql.ja是不是 mysql 的驱动程序
应该放在那里s
是不是放在resin/doc/lib      
linux jsp 的resin 接解决方案
1 安装JDK :j2sdk-1_4_2_04-linux-i586-rpm.bin
#sh ./j2sdk-1_4_2_04-linux-i586-rpm.bin
#rpm -ivh j2sdk-1_4_2_04-linux-i586-rpm
在/usr/java/下生成j2sdk-1_4_2_04目录
2 安装mysql mysql-3.23.58.tar.gz
#tar -zxvf mysql-3.23.58.tar.gz
#cd mysql-3.23.58
#./configure --prefix=/usr/local/mysql --sysconfigdir=/etc --locadstatedir=/var/lib/mysql
#make
#make install
#cd /usr/locad/mysql/bin/mysql_install_db
#useradd -M -o -r -d /var/lib/mysql -s /bin/bash -c "MySQL Server" -u 27 mysql
可以启动mysql了
#/usr/local/mysql/bin/safe_mysqld &
#mysql -u root mysql
如果没进去的 话,改一下权限
# chown -R mysql:mysql /var/lib/mysql
3 安装apache apache_1.3.31-s390-whatever-linux22.tar.gz
#tar -zxvf apache_1.3.31-s390-whatever-linux22.tar.gz
#cd apache_1.3.31
#./configure --prefix=/usr/local/apache --enable-moudule=so
#make
#make install
可以启动apache了
#/usr/local/apache/bin/apachectl start
4 安装resin-3.0.8.tar.gz (在编译apache 生成的moud_caucho.so在/usr/local/apache/libexec
下)
最好把resin-3.0.8.tar.gz拷到/usr/local
#cp -R resin-3.0.8.tar.gz /usr/local
#cd /usr/local
# tar -zxvf resin-3.0.8.tar.gz
将生成resin-3.0.8目录
#./configure --with-apxs=/usr/local/apache/bin/apxs
#make
5 设 JDK , resin-3.0.8的环境变量
#vi ~/.bash_profile
以下是.bash_profile里的内容#号为注释
#PATH=$PATHHOME/bin
#BASH_ENV=$HOME/.bashrc
#USERNAME="root"

#export USERNAME BASH_ENV PATH
JAVA_HOME=/usr/java/j2sdk1.4.2_04
CLASSPATH=$JAVA_HOME/libJAVA_HOME/jre/libCLASSPATH/doc/WEB-INF/lib
RESIN_HOME=/usr/local/resin-3.0.8
CATALINA_BASE=$RESIN_HOME
CATALINA_HOME=$RESIN_HOME
PATH=$JAVA_HOME/binJAVA_HOME/jre/bin:$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
export USERNAME BASH_ENV JAVA_HOME CLASSPATH CATALINA_BASE CATALINA_HOME PATH

6 测试JDK
#java -version
7 启动 resin-3.0.8
#/usr/local/resin-3.0.8/bin/httpd.sh