大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 操作系统 -> Web服务器 -> TOMCAT+IIS配置方法

TOMCAT+IIS配置方法

时间: 2021-07-31 作者:daque

一.证明:  摆设如次:win2000  server  +  iis  5.0(win2000自带)+  tomcat  3.1  binary  release.  我运用的tomcat  3.1是编写翻译过的本子,在这个本子内里没有摆设iis和nt  service  的证明,然而在tocmcat  3.2  source版内里有比拟精细的扶助文献。按照那些扶助文献  不妨成功的把tomcat动作插件插入iis。  二.启用tomcat  安置完tomcat之后(简直安置进程略),要启用tomcat很大略,开始不妨察看tomcat\bin\startup.bat文献,运用遏制面板内里的体例->高档->情况变量对话框,兴建情况变量tomcat_home和java_home,使它们各自指向tomcat和jdk的根目次即可。其余为保障起见,不妨在path内里把二者的路途增添进去。而后打开一个dos窗口实行startup.bat。  启用tomcat后,会有一个dos窗口表露启用情景。此时考察http://localhost:8080不妨看到tomcat的少许示例。  三.摆设  下一步处事即是怎样把tomcat插入iis,使二者共同处事。重要分以次几个办法:  1、在windows备案表中备案:  将底下的begin和end之间的jakarta.reg文献装入呆板,我的tomcat装在c:\\jakarta-tomcat,你可按照本人的情况窜改jakarta.reg文献  jakarta.reg:  ---begin---  windows  registry  editor  version  5.00  [hkey_local_machine\software\apache  software  foundation\jakarta  isapi  redirector\1.0]  "extension_uri"="/jakarta/isapi_redirect.dll"  "log_file"="c:\\jakarta-tomcat\\logs\\isapi.log"  "log_level"="debug"  "worker_file"="c:\\jakarta-tomcat\\conf\\workers.properties"  "worker_mount_file"="c:\\jakarta-tomcat\\conf\\uriworkermap.properties"  ---end---  注:个中的路途需改成你的tomcat的安置路途。  2、翻开iis处置器,在"默许web站点”中创造一个假造目次jakarta,让它的路途指向isapi_redirect.dll地方目次。(在3.1  bin中大概没有这个dll,你不妨从3.2的bin\iis\nt4\i386目次中正片一个过来。该假造目次应被树立为"可实行”。  3、运用iis处置器,把isapi_redirect.dll树立为"默许web站点”的isapi挑选器,称呼不妨任起。  4、重启iis,确认方才增添的isapi挑选器前方标了一个绿色进取的箭镞而后重启tomcat(实行tomcat\bin\shutdown.bat可封闭tomcat)  此时,iis该当仍旧不妨处置*.jsp文献了。因为tomcat树立中,默许的root是  tomcat\webapps\root,以是你不妨在这个目次中安置一个jsp文献(比方  index.jsp),而后考察http://localhost/index.jsp,看一下功效。  即使依照上头的本领仍旧没辙使iis处置jsp文献,不妨试验在iis处置器->默许web站点属性->主目次->摆设中增添一个"运用步调映照”,把*.jsp文献映照到isapi_redirect.dll上。  四.动作nt的效劳  动作nt  service的树立比拟大略。  开始从3.2正片过来jk_nt_service.exe,而后把底下的实质生存起来,起名  为wrapper.properties  #  #  $header:  /home/cvs/jakarta-tomcat/src/etc/wrapper.properties,v  1.1  #2000/05/03  11:54:49  shachor  exp  $  #  $revision:  1.1  $  #  $date:  2000/05/03  11:54:49  $  #  #  #  jk_service.properties  -  a  bootstrup  file  for  the  tomcat  nt  service.  #  #  this  file  provides  jk_nt_service  with  the  needed  information  to  #  start  tomcat  at  a  different  process.  #  #  as  a  general  note,  the  characters  $(  and  )  are  used  internally  to  define  #  macros.  do  not  use  them!!!  #  #  whenever  you  see  a  set  of  lines  such  as:  #  x=value  #  y=$(x)\something  #  #  the  final  value  for  y  will  be  value\something  #  #  normaly  all  you  will  need  to  modify  is  the  first  two  properties,  i.e.  #  wrapper.tomcat_home  and  wrapper.java_home.  most  of  the  configuration  #  is  derived  from  these  two.  #  #  #  wrapper.tomcat_home  should  point  to  the  location  where  you  #  installed  tomcat.  this  is  where  you  have  your  conf,  webapps  and  lib  #  directories.  #  wrapper.tomcat_home=d:\tomcat  #  #  wrapper.java_home  should  point  to  your  java  installation.  normally  #  you  should  have  a  bin  and  lib  directories  beneath  it.  #  wrapper.java_home=d:\jbuilder35\jdk1.2.2  #  #------  advanced  mode  ------------------------------------------------  #  make  sure  that  you  read  the  how-to  before  making  too  many  changes.  #---------------------------------------------------------------------  #  #  #  defining  where  the  service  is  going  to  put  the  standard  #  output  of  tomcat.  this  is  where  system.out.println  and  #  system.err.println  goes  to.  #  wrapper.stdout=$(wrapper.tomcat_home)\jvm.stdout  wrapper.stderr=$(wrapper.tomcat_home)\jvm.stderr  #  #  additions  to  the  path.  put  here  directories  where  you  store  dlls  for  #  native  methods  etc.  #  wrapper.ld_path=d:\  wrapper.ld_path=c:\  #  #  defining  the  classpath.  all  the  rows  that  belongs  to  the  class_path  #  property  are  concatenated  to  create  the  classpath  for  tomcat.  #  #  if  you  have  additional  locations  that  you  would  like  to  add  to  the  #  claspath  you  should  add  a  new  wrapper.class_path=<location>  line.  #  wrapper.class_path=$(wrapper.tomcat_home)\classes  wrapper.class_path=$(wrapper.tomcat_home)\lib\xml.jar  wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar  wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar  wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar  #  #  this  is  where  javac  is  located  in  jdk1.2.x  #  wrapper.class_path=$(wrapper.java_home)\lib\tools.jar  #  #  and  a  tribute  to  jdk1.1.x  #  wrapper.class_path=$(wrapper.java_home)\lib\classes.zip  #  #  this  is  the  java  interpreter  used  for  running  tomcat  #  wrapper.javabin=$(wrapper.java_home)\bin\java.exe  #  #  this  is  tomcat"s  startup  class  (the  class  that  contains  tomcat"s #  starting  point.  #  wrapper.startup_class=org.apache.tomcat.startup.tomcat  #  #  this  is  the  location  where  tomcat"s  server.xml  configuration  file  #  is  located.  #  wrapper.server_xml=$(wrapper.tomcat_home)\conf\server.xml  #  #  the  nt  service  uses  ajp12  to  shutdown  tomcat.  the  wrapper.shutdown_port  #  tells  the  service  the  identity  of  the  port  that  is  used  by  ajp12.  #  wrapper.shutdown_port=8007  #  #  this  is  the  command  line  that  is  used  to  start  tomcat.  you  can  *add*  extra  #  parameters  to  it  but  you  can  not  remove  anything.  #  wrapper.cmd_line=$(wrapper.javabin)  -classpath  $(wrapper.class_path)  $(wrapp  er.startup_class)  -config  $(wrapper.server_xml)  -home  $(wrapper.tomcat_home)  生存后,只需窜改内里的wrapper.tomcat_home和wrapper.java_home使它们各自指向tomcat根目次和jdk根目次即可。  而后运转jk_nt_service  -i  <效劳称呼>  <wrapper.properties的路途>  效劳称呼不妨随意起,比方tomcat大概jakarta之类都行。wrapper.properties的路途应为完备路途(囊括wrapper.properties这个文献名)示例:jk_nt_service  -i  jakarta  d:\wrapper.properties  如许在遏制面板->效劳内里,咱们不妨看到一个名为jakarta的效劳,不妨 在这边启用大概遏止它 。

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.