免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1251 | 回复: 0
打印 上一主题 下一主题

solaris8(sparc)下apache+tomcat+mysql整合之mod_jk篇(原创) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-09-20 15:35 |只看该作者 |倒序浏览
1:确认有以下文件(for sparc solaris 不同的版本系统换不同的文件
drwxrwxrwx   6 root     101          512  9月 20 11:10 ApacheJServ-1.1.2/
-rw-r--r--   1 root     other    3676160  9月 20 10:57 ApacheJServ-1.1.2.tar
drwxr-xr-x   8 501      staff        512  9月 20 11:07 apache_1.3.29/
-rw-r--r--   1 root     other    10455040  9月 20 10:57 apache_1.3.29.tar
-rw-r--r--   1 root     other    398523392  9月 20 11:00 gcc-3.3.2-sol8-sparc-local
-rw-r--r--   1 root     other    5396480  9月 20 10:58 jakarta-tomcat-3.2.2.tar
-rw-r--r--   1 root     other    2390528  9月 20 10:55 make-3.80-sol8-sparc-local
-rw-r--r--   1 root     other    6992907  9月 20 10:55 mysql-max-3.23.58-sun-solaris2.8-sparc.tar.gz
-rw-r--r--   1 root     other    2582837  9月 20 10:56 ncurses-5.4-sol8-sparc-local.gz
-rw-r--r--   1 root     other     995350  9月 20 10:58 proftpd-1.2.9.tar.gz
-rw-r--r--   1 root     other    2865152  9月 20 10:56 tar-1.13.19-sol8-sparc-local
-rw-r--r--   1 root     other     315392  9月 20 10:58 zlib-1.2.1-sol8-sparc-local

2:安装工具

1)install gcc:
pkgadd -d gcc-3.3.2-sol8-sparc-local
2)install gnu make
pkgadd -d make-3.80-sol8-sparc-local
3)install gnu tar
pkgadd -d tar-1.13.19-sol8-sparc-local
cd /usr/bin/tar
mv tar tar1
ln -s /usr/local/bin/tar tar
4)install ncurses
pkgadd -d ncurses-5.4-sol8-sparc-local
5)install zlib
pkgadd -d zlib-1.2.1-sol8-sparc-local

3:安装apache 1.3.29
gunzip apache_1.3.29.tar.gz
tar xvf apache_1.3.29.tar
cd apache_1.3.29
./configure --prefix=/usr/local/apache --enable-shared=max --enable-module=so
make
make install

4:安装jdk,我使用的是solaris8自带的1.2版本

5:准备jsdk.jar 文件
mkdir /usr/local/jsdk
cp jsdk.jar /usr/local/jsdk/.

5:安装mod_jk
gunzip ApacheJServ-1.1.2.tar.gz
tar xvf ApacheJServ-1.1.2.tar
cd ApacheJServ-1.1.2
jdk-home 如果用系统的jdk1.2,那么下面的with-jdk-home 值应该为--with0jdk-home=/usr/java
./configure --prefix=/usr/local/apache/jserv --with-jdk-home=/usr/java/j2sdk1.4.2_04/ --with-JSDK=/usr/local/jsdk/jsdk.jar --with-apxs=/usr/local/apache/bin/apxs
make
make install

mv /etc/apache/httpd.conf-example httpd.conf
修改ServerName等等

import notes::
+-STEP 1-------------------------------------------------------+
|Run 'make; make install' to make a .jar file, compile the C   |
|code and copy the appropriate files to the appropriate        |
|locations.                                                    |
+--------------------------------------------------------------+

+-STEP 2-------------------------------------------------------+
|Put this line somewhere in Apache's httpd.conf file:          |
|Include /usr/local/apache/conf/jserv/jserv.conf-------------
-----修改include /usr/local/tomcat3.2.2/conf/tomcat_apache.conf
echo "include /usr/local/tomcat3.2.2/conf/tomcat_apache.conf"
>;>;httpd.conf
|                                                              |
|Then start Apache and try visiting the URL:                   |
|http://www:SERVER_PORT/servlets/Hello
|                                                              |
|If that works then you have successfully setup Apache JServ.  |
|                                                              |
|If that does not work then you should read the                |
|troubleshooting notes referenced below.                       |
+--------------------------------------------------------------+

+-Troubleshooting----------------------------------------------+
|Html documentation is available in the docs directory.        |
|                                                              |
|Common Errors:                                                |
|    Make sure that the log files can be written to by the     |
|    user your httpd is running as (ie: nobody). If there are  |
|    errors in your configuration, they will be logged there.  |
|                                                              |
|Frequently asked questions are answered in the FAQ-O-Matic:   |
|                                                              |
|           http://java.apache.org/faq/                        |
+--------------------------------------------------------------+



6:安装tomcat3.2.2

gunzip jakarta-tomcat-3.2.2.tar.gz
tar xvf jakarta-tomcat-3.2.2.tar
mv jakarta-tomcat-3.2.2 /usr/local/tomcat3.2.2
cd bin
./startup.sh
cd ..
cd conf
cp tomcat-apache.conf tomcat_apache.conf
vi tomcat_apache.conf
change LoadModule jserv_module libexec/mod_jserv.so
to
LoadModule jserv_module /usr/local/apache/libexec/mod_jserv.so

7:安装mysql 3.23
gunzip mysql-max-3.23.58-sun-solaris2.8-sparc.tar.gz
tar xvf mysql-max-3.23.58-sun-solaris2.8-sparc.tar
mv mysql-max-3.23.58-sun-solaris2.8-sparc /usr/local/mysql

groupadd mysql
useradd -g mysql mysql

cd /usr/local/mysql
scripts/mysql_install_db
chown -R root . (注意最后的.)
#chown -R mysql data
#chgrp -R mysql . (同样注意)
#bin/mysqld_safe --user=mysql &
cp support_files/mysql.server  /etc/init.d/mysqld
# chmod a+x /etc/init.d/mysqld
# ln -s /etc/init.d/mysqld  /etc/rc3.d/S98mysql
# /etc/init.d/mysqld start



欢迎大家提意见!!!   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP