惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
S
Securelist
MyScale Blog
MyScale Blog
Jina AI
Jina AI
罗磊的独立博客
The Cloudflare Blog
美团技术团队
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
雷峰网
雷峰网
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
博客园 - 聂微东
Y
Y Combinator Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
T
Tailwind CSS Blog
Attack and Defense Labs
Attack and Defense Labs
博客园_首页
Latest news
Latest news
Apple Machine Learning Research
Apple Machine Learning Research
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Hacker News
The Hacker News
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
U
Unit 42
D
Docker
Webroot Blog
Webroot Blog
N
Netflix TechBlog - Medium
T
Tor Project blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 最新话题
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
B
Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Security Latest
Security Latest
V2EX - 技术
V2EX - 技术
N
News | PayPal Newsroom
Microsoft Security Blog
Microsoft Security Blog

博客园 - 王兴2008-偶想家了!

php构造数组,并把多数组插入php文件 Apache2服务无法启动--解决方法 晕 phpcms框架下的标签参数说明! 呵呵 痛苦后的一点小小发现!!! 解决.NET下Web项目打开失败的问题(转) suse linux 下TomCat安装 suse linux 下JDK安装 (转)Struts常见问题总结 session.flush机制(转)!!! 关于在java中List取值的方法(List中是数据对象)! 关于数据库中去掉数据空格的方法!!! 关于在CVS下无法获取更新的解决方法!!! Java开发者需坚守的十大基本准则(转) Windows2003之搭建FTP服务器 关于这几天倒数据的一些心得 关于数据库中重复的记录  的几种取出方法 IIS的各种身份验证详细测试(转) 给你绑定后的DropDownList加一个默认项!!! 一个生成 N 位随机数字的方法
关于tomcat默认页面的设置!!! - 王兴2008-偶想家了! - 博客园
王兴2008-偶想家了! · 2007-12-21 · via 博客园 - 王兴2008-偶想家了!

修改配置文件:   
    
   首先,修改$tomcat/conf/server.xml文件。   
   在server.xml文件中,有一段如下:   
   ……   
   <engine    name="Catalina"    defaultHost="localhost">   
         <host    name="localhost"    appBase="webapps"   
                 unpackWARs="true"    autoDeploy="true"   
                 xmlValidation="false"    xmlNamespaceAware="false">   
         ……   
         <host>   
   </engine>   
   ……   
   在<host></host>标签之间添加上:   
    
   <Context path="" docBase="D:\hbjobwork\WebRoot5" reloadable="true" crossContext="true" >

    
   path是说明虚拟目录的名字,如果你要只输入ip

就显示主页,则该键值留为空;   
    
   docBase是虚拟目录的路径,它默认的是$tomcat/webapps/ROOT目录,现在目录已经指向到D:\hbjobwork\WebRoot5目录,让该目录作为我的默认目录。   
    
   debug和reloadable一般都分别设置成0和true。   
    
   然后,修改$tomcat/conf/web.xml文件。   
   在web.xml文件中,有一段如下:   
           <welcome-file-list>   
                   <welcome-file>index.html</welcome-file>   
                   <welcome-file>index.htm</welcome-file>   
                   <welcome-file>index.jsp</welcome-file>   
           </welcome-file-list>   
   在<welcome-file-list>与<welcome-file>index.html</welcome-file>之间添加上:   
    
   <welcome-file>a.jsp</welcome-file>   
    
   保存上述两个文件后重启tomcat,在浏览器地址栏内输入"http://localhost:8080/",显示a.jsp页面的内容。