1TongTech®TongWeb5.0快速使用手册东方通科技2TongTech®...........................................................................................................................1第1章TongWeb5.0产品介绍.....................................................................................................31.1概述.................................................................................................................................31.2规范支持.........................................................................................................................3第2章TongWeb5.0安装.............................................................................................................42.1TongWeb5.0安装要求....................................................................................................42.1.1TongWeb5.0支持的操作系统..............................................................................42.1.2系统要求...............................................................................................................42.1.3其他.......................................................................................................................42.2安装TongWeb5.0............................................................................................................52.3TongWeb5.0目录结构说明............................................................................................62.4TongWeb5.0的启动和停止............................................................................................6第3章应用部署.........................................................................................................................83.1创建数据源.....................................................................................................................83.2部署应用.......................................................................................................................103.3测试并访问应用............................................................................................................11第4章常用Web主要参数调整................................................................................................114.1JVM堆内存设置...........................................................................................................114.2修改应用访问端口........................................................................................................124.3设置TongWeb5.0日志.................................................................................................124.4关闭访问日志................................................................................................................134.5关闭控制台日志输出....................................................................................................134.6设置并发线程数............................................................................................................134.7修改HTTP通道............................................................................................................144.8JDBC资源池相关性能参数.........................................................................................144.9JSP预编译....................................................................................................................153第1章TongWeb5.0产品介绍1.1概述TongWeb5.0是遵循JavaEE5规范的企业级应用服务器,它为企业应用提供了可靠、可伸缩、可管理和高安全的基础平台。因此支持JavaEE5规范中的新特性,如标注、依赖性注入、EJB3.0和JPA、WebService,JSF等,同时也向下兼容J2EE1.4规范。另外TongWeb5.0还提供基于Eclipse的开发插件,高效、便捷的集群部署管理工具。1.2规范支持类型支持内容组件JSP2.1Servlet2.5JSF1.2JSTL1.2EJB3.0资源和服务JTA1.0.1BJDBC3.0JavaMail1.4.1JAF1.0.2J2EEApplicationManagementSpecification1.0JMS1.1JCA1.5JAX-WS2.0协议HTTP1.1RMI-IIOP1.0安全JAAS1.0J2EE向下兼容J2EE1.4,J2EE1.3规范4第2章TongWeb5.0安装2.1TongWeb5.0安装要求2.1.1TongWeb5.0支持的操作系统Windows平台Linux平台RedHat系列RedFlag系列SuseLinux系列Unix平台SunMicrosystemsSolaris系列IBMAIX系列2.1.2系统要求系统组件系统要求Java环境JDK1.5以上内存至少需要256MB的内存硬盘空间至少需要256MB磁盘空间监视器图形界面安装需要256色,字符界面安装没有色彩要求浏览器MicrosoftIE6或Firefox3.0及以上版本浏览器2.1.3其他(1).TongWeb5.0需要在操作系统Hosts文件中定义本机IP地址,并以本机的IP优先。如下所示:168.1.103.6localhost127.0.0.1localhostWindowsNT/2000/2003系统Hosts文件路径:%systemroot%/system32/drivers/etc。Linux系统hosts文件路径:/etc。(2).TongWeb5.0启动时,需设置使用的JDK路径,即设置本机环境变量JAVA_HOME值。52.2安装TongWeb5.0以在Linux下字符界面为例说明TongWeb5.0的安装过程:(1).建立TongWeb5.0用户账户或直接使用root用户安装。(2).上传TongWeb5.0安装程序,如Install_TW5.0.1.1_Standard_linux.bin至服务器机器,并赋予可执行权限(chmod+xInstall_TW5.0.1.1_Standard_linux.bin)。(3).执行命令./Install_TW5.0.1.1_Standard_linux–iconsole开始安装。(4).输入“Y”,确认接受本协议。IntelligentPropertyProtectionRegulation,CopyrightLaw,ExclusiveLawNow,youmusthavealreadycarefullyreadandunderstandthislicense,andagreedtoobeyallthetermsandconditionsstrictly.DOYOUACCEPTTHETERMSOFTHISLICENSEAGREEMENT?(Y/N):Y(5).输入TongWeb5.0安装目录并回车,若使用缺省目录,直接回车。Wherewouldyouliketoinstall?DefaultInstallFolder:/home/tongweb/TongWeb5.0ENTERANABSOLUTEPATH,ORPRESSENTERTOACCEPTTHEDEFAULT:/home/tongweb/TongWeb5.0(6).输入“Y”,确认安装目录。INSTALLFOLDERIS:/home/tongweb/TongWeb5.0ISTHISCORRECT?(Y/N):Y(7).选择“4”,不用建立连接:Wherewouldyouliketocreatelinks?-1-Default:/home/tongweb2-Inyourhomefolder3-Chooseanotherlocation...4-Don'tcreatelinksENTERTHENUMBEROFANOPTIONABO