丄諦啲仇魜ヤ
如 果 敌 人 让 你 生 气 , 那 说 明 你 没 有 胜 他 的 把 握!
posts - 6,comments - 56,trackbacks - 1
1.在TOMCAT里面配置 
<Host name="www.ahgcc.cn" appBase="webapps"
            unpackWARs="true" autoDeploy="true"
           xmlValidation="false" xmlNamespaceAware="false">
        <Context path="" docBase="D:\server\hdsf\hdsfweb"  debug="0"
        reloadable="true" crossContext="true">
         <Logger className="org.apache.catalina.logger.FileLogger"
          prefix="localhost_ahgsl_log." suffix=".txt"
          timestamp="true"/>
     <Resource name="jdbc/hdsf" auth="Container"
       type="javax.sql.DataSource" driverClassName="net.sourceforge.jtds.jdbc.Driver"
       url="jdbc:jtds:sqlserver://localhost:1433;DatabaseName=ahgsl;SelectMethod=cursor"
       username="ahgsl" password="ahgsl" maxActive="100" maxIdle="30"
       maxWait="-1" testOnBorrow="true" testOnReturn="true" testWhileIdle="true"
       timeBetweenEvictionRunsMillis="100000"/>
   </Context>
    </Host>

2 . 在系统目录   C:\WINDOWS\system32\drivers\etc  文件下找到 HOSTS

  打开 修改为:

                 127.0.0.1       localhost
                 61.191.26.109   www.ahgcc.cn

   注释: 61.191.26.109是自己是服务器的IP

3. 配置自己的域名解析 



                                 





                                                                                                                        看看别人的  http://q.sohu.com/forum/5/topic/717549


posted on 2008-12-09 15:23 Crying 阅读(457) 评论(0)  编辑  收藏 所属分类: Tomcat

只有注册用户登录后才能发表评论。


网站导航: